Sets the picture for the item index of a toolbar item.
Toolbar controls
Integer controlname.GetItemPictureIndex ( toolbarindex, pictureindex )
Argument |
Description |
---|---|
controlname |
The name of the toolbar control |
toolbarindex |
Integer for the index of a toolbar item |
pictureindex |
Integer for the index of the picture you want to set for a toolbar item |
Integer. Returns 1 for success and -1 if an error occurs.
The following example sets the picture index for the second item in the toolbar, assigning it the first picture in the toolbar picture name array:
Integer li_rtn
li_rtn = tlbr_mytoolbar.SetItemPictureIndex(2, 1)