Returns or sets the index of an AImageListImage object to be used.
Object.Image [ = lImage ]
The Image property syntax has the following parts:
|
Name |
Type |
Description |
|
Object |
AToolBarButton |
AToolBarButton class |
|
lImage |
Long |
The zero base index of an AImageListImage object to be used. |
Before setting the Image property, you must associate an AImageList control with an AToolbar control by setting the control's ImageList property to an AImageList control.
At design time, put an AImageList control on the form and load it with images, each of which is a AImageListImage object assigned an index number in a AImageListImages collection. On the Control tab in the control's Property Pages dialog box, select the AImageList you want from the AImageList list box, such as AImageList1. Then you can specify the image you want to associate with this AToolBarButton object by selecting the specific AImageListImage object in the Image field of the AToolBarButton's Property Page.
The following statement sets the index of an AImageListImage object to be used with this AToolBarButton to the second item:
tbr1.ImageList=imgli1
tbrb1.Image=1