[Overview][Types][Classes][Index] |
Adds an icon to the list, returning the index of the icon or -1 if not successful.
Source position: imglist.pp line 170
public function TCustomImageList.AddIcon( |
Image: TCustomIcon |
):Integer; |
Image |
|
The Icon to be added. |
The index of the added icon, -1 if unsuccesful.
Adding graphics other than bitmaps can be implemented by converting the graphics item into a bitmap, which then can be added to the image list. Most graphics classes support such a conversion, so that specialized methods are redundant.
|
Insert an Icon into the list. |
lazarus-ccr.sourceforge.net |