Vcl.ImgList.TCustomImageList.ResourceLoad
Delphi
function ResourceLoad(ResType: TResType; const Name: string; MaskColor: TColor): Boolean;
C++
bool __fastcall ResourceLoad(TResType ResType, const System::UnicodeString Name, System::Uitypes::TColor MaskColor);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.ImgList.pas Vcl.ImgList.hpp |
Vcl.ImgList | TCustomImageList |
Description
Loads a resource into the image list.
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.