On 4/16/21 12:49 AM, Webb Hinton wrote:
Hey all,
Just wondering, why not add more Cursors to the existing set of Cursors in FLTK? A couple that seem pretty important for a wide scope of applications include:
- Hourglass
- Closed Hand
- Crosshairs
- Magnifying Glass
FLTK does have "Hourglass" as FL_CURSOR_WAIT, and "Crosshairs" as FL_CURSOR_CROSS
(See FL/Enumerations.H for all the FL_CURSOR_xxx options)
But yes, we don't have 'Closed hand' or 'Magnifying glass' AFAIK.
Apparently you can define your own cusors by supplying an Fl_RGB_Image and the x,y
position of the 'hot spot' using Fl_Window::cursor(const Fl_RGB_Image*, int, int);
Might be good if FLTK had an example showing its use.
On 23 Apr 2021, at 12:55, Albrecht Schlosser wrote:
>
> Did you also try my version? Since it would always change the cursor size depending on the scaling of the current screen it should work "as expected". Hopefully.
... our IT unit scheduled my Win10 machine to upgrade to some or other later version. It is still doing it as I type. It’s been at it for a while...
So I didn’t get to try your version (yet), sorry.
On 4/26/21 11:17 PM, Webb Hinton wrote:
Any thoughts on why cursor must take an RgbImage and not an SVG?
I was returning to this thread because I was wondering if anyone had any thoughts on how scaling the cursor image across different monitors might work, so very happy to see some examples. Any thoughts on why cursor must take an RgbImage and not an SVG?