[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Loads icon data from the specified instance and resource handles.
Source position: graphics.pp line 1678
public procedure TIcon.LoadFromResourceHandle( |
Instance: TLCLHandle; |
ResHandle: TFPResourceHandle |
); override; |
Instance |
|
Handle with the resource data loaded in the method. |
ResHandle |
|
Resource handle with the icon data loaded in the method. |
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.
Modified in LCL version 4.0 to use the TLCLHandle type instead of the deprecated THandle type in the Instance parameter.
|
Loads icon data from the specified instance and resource handles. |
|
|
Reads data for the class instance from a stream. |
|
|
LoadFromStream - loads data for the image from a specified data stream, optionally supplying its size. |
|
|
The type used for handles in LCL applications, components, controls, and widget set classes. |
Version 4.0 | Generated 2025-05-03 | Home |