RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomImageList.FileLoad Method

Loads a resourced image into the image list.

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

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.
 

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