Method CreateCursorHandler
CreateCursorHandler()
Creates cursor handler.
ICursorHandler CreateCursorHandler()
Returns
CreateCursorHandler(CursorType)
Creates cursor handler with the specified cursor type.
ICursorHandler CreateCursorHandler(CursorType cursor)
Parameters
cursor
CursorType
Returns
CreateCursorHandler(string, BitmapType, int, int)
Creates cursor handler by passing a string resource name or filename.
ICursorHandler CreateCursorHandler(string cursorName, BitmapType type, int hotSpotX, int hotSpotY)
Parameters
cursorName
stringThe name of the resource or the image file to load.
type
BitmapTypeIcon type to load.
hotSpotX
intHotspot x coordinate (relative to the top left of the image).
hotSpotY
intHotspot y coordinate (relative to the top left of the image).
Returns
Remarks
The arguments hotSpotX and hotSpotY are only used when there's no hotspot info in the resource/image-file to load (e.g. when using icon under Windows or xpm under Linux).
CreateCursorHandler(Image, int, int)
Create cursor handler for the specified image.
ICursorHandler CreateCursorHandler(Image image, int hotSpotX, int hotSpotY)
Parameters
image
ImageImage for the cursor.
hotSpotX
intHotspot x coordinate (relative to the top left of the image).
hotSpotY
intHotspot y coordinate (relative to the top left of the image).
Returns
Remarks
If cursor are monochrome on the current platform, colors with the RGB elements all greater than 127 will be foreground, colors less than this background. The mask (if any) will be used to specify the transparent area.
CreateCursorHandler(GenericImage, int, int)
Create cursor handler for the specified image.
ICursorHandler CreateCursorHandler(GenericImage image, int hotSpotX, int hotSpotY)
Parameters
image
GenericImageImage for the cursor.
hotSpotX
intHotspot x coordinate (relative to the top left of the image).
hotSpotY
intHotspot y coordinate (relative to the top left of the image).