Sign in Join
FPDoc Onlineexperiment

TIcon.LoadFromResourceHandle procedure

Member of TIconpublicIn unit Graphics

Loads icon data from the specified instance and resource handles.

Declaration

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

Description

LoadFromResourceHandle is an overridden method in TIcon used to load image data from an icon resource identified by the handles in Instance and ResHandle. The handles are passed as arguments to the RTL LoadResource routine which provides the global handle for the group resource on the platform.

LoadFromResourceHandle reads the icon headers and data for the entries from the resource. The ReadData method is called to read and store the values in the stream to the shared raster image for the icon.

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.