nappgui_src icon indicating copy to clipboard operation
nappgui_src copied to clipboard

Usage of window_cursor with user defined images

Open PascalQuesseveur opened this issue 2 years ago • 0 comments

Hello, I wanted to set an animated cursor during a computation loop. I have set several images that I use to display the cursor. I first set the cursor with the first image and then call osapp_task to manage the computation:

osapp_task (app, 0.5f, loop_start, loop_update, loop_end, App);

I change the cursor image in function loop_update. The first call to window_cursor, before calling osapp_task, works fine: the cursor is changed and the update is applied immediately. Subsequent calls to window_cursor in update function don't work as well: the cursor is changed but I have to move manually the mouse to see the change applied (tested on Windows 10).

Is there anything I can do to force the update? Or is there another way to animate a slider?

PascalQuesseveur avatar Jul 11 '23 07:07 PascalQuesseveur