Skip to main content

TcxCustomImageList.LoadFromResource(THandle,string,PChar) Method

Loads images and supplemental information from a resource.

Declaration

procedure LoadFromResource(AInstance: THandle; const AResourceName: string; AResourceType: PChar);

Parameters

Name Type Description
AInstance THandle

The instance handle associated with the executable or shared library that contains the resource with image list content.

AResourceName string

The resource name in the RC file.

AResourceType PChar

The resource type (RT_BITMAP, RT_ICON, RT_GROUP_ICON, etc., for images).

Remarks

Call this procedure to clear the image list and repopulate it with images from a resource. The LoadFromResource procedure also updates the BlendColor, BkColor, ColorDepth, Width, and Height properties with the corresponding values.

See Also