GetItemPictureIndex

Description

Gets the picture index that corresponds to the item index of a toolbar item.

Applies to

Toolbar controls

Syntax

Integer controlname.GetItemPictureIndex ( toolbarindex )

Argument

Description

controlname

The name of the toolbar control

toolbarindex

Integer for the index of the toolbar item

Returns

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.

Examples

Example 1

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)

See also