Sign in Join
FPDoc Onlineexperiment

TCursorImage.LoadFromResourceHandle procedure

Member of TCursorImagepublicIn unit Graphics

Loads cursor images from the specified instance and resource handles.

Declaration

pascal
procedure LoadFromResourceHandle(Instance: TLCLHandle; 
 ResHandle: TFPResourceHandle); override

Description

LoadFromResourceHandle is an overridden method in TCursorImage used to load cursor image(s) from the group cursor resource identified in the Instance and ResHandle arguments. It calls the RTL LoadResource routine to get the global handle used for the resource(s) on the platform. No actions are performed in the method if the handle is unassigned (0).

LoadFromResourceHandle creates a temporary resource stream which is used to store the group cursor resources, including hot spot and image offset data. ReadData is called to load the values from the stream to the shared raster image used for the group cursor resources.

LoadFromResourceHandle reimplements the empty implementation introduced in the TCustomIcon ancestor.

See also

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.