Vcl.ImgList.TCustomImageList.FileLoad
Delphi
function FileLoad(ResType: TResType; const Name: string; MaskColor: TColor): Boolean;
C++
bool __fastcall FileLoad(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 resourced image into the image list.
Use the FileLoad method to load a bitmap, cursor, or icon from a resource file. Use ResType to specify the type of resource. Use Name to identify the resource by name. Use MaskColor to set the transparent color for the images. FileLoad returns true if successful.
Note: Within a package, FileLoad returns an error. GetInstRes must be used to load a resource from within a package.