TiImageDisplay.ImageListLoadFromResourceID
TiImageDisplay
Populates the internal image list from a Resource ID (Integer Value).
procedure ImageListLoadFromResourceID(Instance: Cardinal; ResID: Integer);
Description
Call ImageListLoadFromResourceID to load images to the component's built-in
Image List from a resource ID. The resource is referenced as an Integer Value.
If you need to reference a Resource ID by name or String, then use ImageListLoadFromResourceName instead.
Note: if you do not first call ImageListClear, the images will be appended to the current list of images.
Example
Delphi
iComponent.ImageListLoadFromResourceID(HInstance, 1);
iComponent.ImageListLoadFromResourceID(HInstance, 2);
iComponent.ImageListLoadFromResourceID(HInstance, 2);
iComponent.ImageListLoadFromResourceID(HInstance, 4);
C++ Builder
iComponent->ImageListLoadFromResourceID(HInstance, 1);
iComponent->ImageListLoadFromResourceID(HInstance, 2);
iComponent->ImageListLoadFromResourceID(HInstance, 3);
iComponent->ImageListLoadFromResourceID(HInstance, 4);
Contents | Index | Previous | Next