SetItemPictureIndex

Description

Sets the picture for the item index of a toolbar item.

Applies to

Toolbar controls

Syntax

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

Returns

Integer. Returns 1 for success and -1 if an error occurs.

Examples

Example 1

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)

See also