MouseCursor.Constructor(image as Picture, xHotSpot as Integer, yHotSpot as Integer)
From Xojo Documentation
Constructor
This method is only available on macOS, Windows and Linux platforms. For cross-platform compatibility, use #If...#Endif with the Target... specifiers to make sure you will not attempt to use this method on an incompatible platform. |
Creates a new cursor using the passed image. The hot spots are the x, y coordinates that the operating system uses to track the cursor’s position. The upper-left corner of the cursor is position 0,0.
Example
This example creates a new cursor that uses an image that has been added to the Project.