Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

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