TiObjectCanvas.ImageListLoadFromResourceName
TiObjectCanvas
Populates the internal image list from a Resource Name (String Value)
procedure ImageListLoadFromResourceName (Instance: Cardinal; ResName: String);
Description
Call ImageListLoadFromResourceName to load images to the component's built-in
Image List from a resource ID. The resource is referenced as a String Value.
If you need to reference a Resource ID by Integer value, then use ImageListLoadFromResourceID instead.
Note: if you do not first call ImageListRemoveAll, the images will be appended to the current list of images.
Example
Delphi
iComponent.ImageListLoadFromResourceName(HInstance, 'Image1');
iComponent.ImageListLoadFromResourceName(HInstance, 'Image2');
iComponent.ImageListLoadFromResourceName(HInstance, 'Image3');
iComponent.ImageListLoadFromResourceName(HInstance, 'Image4');
C++ Builder
iComponent->ImageListLoadFromResourceName(HInstance, "Image1");
iComponent->ImageListLoadFromResourceName(HInstance, "Image2");
iComponent->ImageListLoadFromResourceName(HInstance, "Image3");
iComponent->ImageListLoadFromResourceName(HInstance, "Image4");
Contents | Index | Previous | Next