MouseCursor.Constructor(image as Picture, xHotSpot as Integer, yHotSpot as Integer)

From Xojo Documentation

Revision as of 20:09, 1 June 2017 by PLefebvre (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Constructor


MouseCursor.Constructor(image as Picture, xHotSpot as Integer, yHotSpot as Integer)

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.

Dim c As New MouseCursor(EarthAmericas, 20, 20)