Gets the picture index that corresponds to the item index of a toolbar item.
Toolbar controls
Integer controlname.GetItemPictureIndex ( toolbarindex )
Argument |
Description |
---|---|
controlname |
The name of the toolbar control |
toolbarindex |
Integer for the index of the toolbar item |
Integer. Returns the picture index that identifies the picture associated with the toolbar item defined by the value of the toolbarindex argument. Returns -1 if an error occurs.
The following example gets the picture index for the second item in the toolbar and places it in a local variable:
Integer li_picindex
li_picindex = tlbr_mytoolbar.GetItemPictureIndex(2)