Go Back   Cockos Incorporated Forums > REAPER Forums > ReaScript, JSFX, REAPER Plug-in Extensions, Developer Forum

Reply
 
Thread Tools Display Modes
Old 03-02-2017, 09:34 PM   #1
me2beats
Human being with feelings
 
me2beats's Avatar
 
Join Date: Jul 2015
Location: Yekaterinburg, Russia
Posts: 400
Default Does gfx.setcursor() work if mouse is outside of script window?

I write media browser script and I want to set cursor if mouse is on arrange when I dragndrop sample from script window.
http://imgur.com/mtndtS8

It seems gfx.setcursor() to work only if mouse is on script window. Is it true or not?
me2beats is offline   Reply With Quote
Old 10-04-2017, 05:10 AM   #2
heda
Human being with feelings
 
heda's Avatar
 
Join Date: Jun 2012
Location: Spain
Posts: 7,238
Default

I've noticed gfx.setcursor changes the cursor and if you click and drag outside the gfx window, it maintains the cursor outside the gfx window until mouse up.
Now the problem is how to change the cursor after the first mouse_down in the gfx window. Because it also doesn't change until mouse up. I still don't know how gfx.setcursor works.
heda is offline   Reply With Quote
Old 10-08-2017, 12:04 PM   #3
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 3,714
Default

In my FR thread ReaScript: Allow scripts to change mouse cursor, I suggest that a possible workaround is to use a tooltip that follows the mouse cursor:

juliansader is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:07 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.