Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Developer Forum

Thread Tools Display Modes
Old 03-02-2017, 09:34 PM   #1
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.

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
Human being with feelings
heda's Avatar
Join Date: Jun 2012
Location: Spain
Posts: 4,711

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.
HeDaScripts for REAPER | VIP Donations
heda is offline   Reply With Quote
Old 10-08-2017, 12:04 PM   #3
Human being with feelings
Join Date: Jul 2009
Posts: 1,561

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 online now   Reply With Quote

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 08:27 AM.

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