[Overview][Types][Classes][Index] Reference for unit 'ImgList' (#lcl)

TCustomImageList.Insert

Inserts one or more images into the list at the index position.

Declaration

Source position: imglist.pp line 200

public procedure TCustomImageList.Insert(

  AIndex: Integer;

  AImage: TCustomBitmap;

  AMask: TCustomBitmap

);

Arguments

AIndex

  

insert position

AImage

  

bitmap to insert

AMask

  

transparency mask, Nil for opaque

Description

The inserted bitmap can consist of multiple images, of the same width and height, which become accessible as distinct images in the ImageList.

The height of the inserted images must match the ImageList height, else the ImageList content is replaced by the added images. The width must be a multiple of the ImageList width, so that the list always contains an integral number of images.

If Mask is nil, the inserted images have no transparent parts. Use InsertMasked to insert bitmaps with a specific transparent color.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.