I am using the following code to set the image as a node's mouse cursor.
B4X:
Dim bc As BitmapCreator
bc.Initialize(SizeSlider.Value,SizeSlider.Value)
Dim r As B4XRect
r.Initialize(0,0,SizeSlider.Value,SizeSlider.Value)
bc.DrawRect(r,xui.Color_ARGB(120,255,0,0),True,1)
Dim img As Image = bc.Bitmap
Dim ImageCursor As JavaObject
ImageCursor.InitializeNewInstance("javafx.scene.ImageCursor",Array(img,img.Width/2,img.Height/2))
Dim jo As JavaObject = Canvas1
jo.RunMethod("setCursor", Array(ImageCursor))
On macOS, the cursor's size will change based on the bitmap's size. But on Windows, the display size is fixed. I wonder how to solve this problem.
If I had to do something like this, I would look at Windows Accessibility first.
There are settings in Windows for people with vision problems. There may be some lower-level API to change the cursor size.
Dragging an imageview could be a huge pain unless you restrict it to a specific view/control.
I've written the code below to affect (what I think) are the only reg keys responsible for the size of the cursor and pointer in Windows 10. Here's the code I have so far (Some additional comments