[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Graphics' (#lcl)

# TCursorImage.Handle

Handle for the cursor image.

## Declaration

Source position: graphics.pp line 1778

`public property TCursorImage.Handle : HCURSOR read GetCursorHandle write SetCursorHandle;`

## Description

Handle is a HCURSOR property in TCursorImage, and contains the handle used to identify the cursor image. The value for the property is provided by the GetHandle method.

Setting a new value for Handle causes the device context in Canvas to be freed, and the shared image for the icon is cleared. The UpdateHandle method is called to update the shared image using the new value for the property. If the shared icon contains image data, the value in Current is set to 0 (the first image in the internal list of images). Otherwise, Current is set to -1.

Changed is called to re-create the internal save stream for the shared image and signal the OnChange event handler (when assigned).