RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomImageList.ResourceLoad Method

Loads a resource into the image list.

Pascal
function ResourceLoad(ResType: TResType; const Name: string; MaskColor: TColor): Boolean;
C++
__fastcall Boolean ResourceLoad(TResType ResType, const AnsiString Name, TColor MaskColor);

Use the ResourceLoad method to load a resource of type TResType into the image list. Use Name to identify the resource. MaskColor is used to create the mask for the resulting image. ResourceLoad returns true if successful, false otherwise.

Note: Within a package, use ResInstLoad instead of ResourceLoad. ResourceLoad returns an error when called from within a package.
 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!