ImageList Property (AToolBar)

Returns or sets the object to be used for storing images displayed when a button is in a normal state.

Syntax

Object.ImageList [ = obImageList ]

The ImageList property syntax has the following parts:

 

Name

Type

Description

Object

AToolBar

AToolBar control

obImageList

AImageList

AImageList object.

Comments

For a control to use the ImageList property, you must place an AImageList control on the form. Then, at design time, you can set the ImageList property in the associated control's Property Pages dialog box. To associate an AImageList with a control at run time, set the control's ImageList property to the AImageList control you want to use.

Example

The following statement sets the AImageList control to be used for storing images displayed when an AToolBarButton is in a normal state to imglNormal:

tbr1.ImageList=imglNormal

Applies to

AToolBar

See Also

DisabledImageList, HotImageList