Back to Devexpress

TcxCustomImageList.LoadFromResource(THandle,string,PChar) Method

vcl-cximagelist-dot-tcxcustomimagelist-dot-loadfromresource-x28-system-dot-thandle-system-dot-string-system-dot-pchar-x29.md

latest1.7 KB
Original Source

TcxCustomImageList.LoadFromResource(THandle,string,PChar) Method

Loads images and supplemental information from a resource.

Declaration

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

Parameters

NameTypeDescription
AInstanceTHandle

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

LoadFromFile(string)

TcxCustomImageList Class

TcxCustomImageList Members

cxImageList Unit