Using the ImageList Control

LEADTOOLS VCL provides an image list control that lets you display and manipulate a list of images. Any events listed below that are not underlined are VCL Control events, not LEAD events. For information concerning those events, consult your Borland documentation. The ImageList properties, methods and events let you do the following with a list of images:

You can load and save image lists using these methods:

LoadFromFile method

SaveToFile method

The following provide support for dragging and dropping:

EnableOLEDragMethod property (ImageList Control)

OLEDragCursor property (ImageList Control)

OnOLECompleteDrag event (ImageList Control)

OnOLEDragOver event (ImageList Control)

OnOLEGiveFeedback event (ImageList Control)

OnOLEStartDrag event (ImageList Control)

To insert and delete images, use the following:

Clear method

Insert method

InsertAt method

InsertFromBitmapList method

Remove method

To specialize mouse and keyboard input, use the following:

Click event

DblClick event

EnableKeyboard property

KeyDown event

KeyPress event

KeyUp event

MouseDown event

MouseMove event

MouseUp event

Cursor property

You can modify the display characteristics, or item characteristics, using the following:

AllowSelection property

Ctl3D Property;

BackColor property

BitonalScaling property

BorderColor property

BorderStyle property

DisplayItemText property

FirstVisibleItem property

Font property

ForeColor property

Item property

ItemBackgroundColor property

ItemHeight property

ItemHorizontalSpacing property

OnItemSelected event

ItemVerticalSpacing property

ItemWidth property

PaintDither property

PaintScaling property

Resize event

SelectAll method

SelectedCount property

SelectedItems property

SelectionColor property

SelectionStyle property

Sort method

SetSelectionBitmap method

ViewSize property

The following provide support for user-defined or custom painting of the ImageList items:

OwnerDrawItem event

OwnerDrawItems property

The following elements let you scroll through the image list:

EnsureVisible method

OnScroll event

ScrollItems method

ScrollStyle property

To obtain information about the image list, use the following:

ColumnCount property

Count property

CurrentPage property

HitTest method

PageCount property

RowCount property

LEADTOOLS also provides the following general elements:

EnableMethodErrors property

ErrorMsg property

Error property

IsSupportLocked method

UnlockSupport method

The properties and events listed below are inherited from TWinControl VCL control. For information concerning these events, consult your Borland documentation:

Click event

DblClick event

KeyDown event

KeyPress event

KeyUp event

MouseDown event

MouseMove event

MouseUp event

Cursor property

Ctl3D Property

To import a list of bitmaps to the Image List control or to export a number of bitmaps from the Image List control to a bitmap list, use the following methods:

ImportBitmapList method

ExportBitmapList method

To sort the items in the ImageList Control according to the passed options, use the following method:

SortExt method