ItemGroup  ItemPictureIndex[ ]

Chapter 3: Property Descriptions and Usage

ItemPictureIndex

Applies to

ToolbarItem objects

Description

Determines the picture that displays on a toolbar button. The value you select for the picture index must correspond to an entry in the toobar picture array.

Usage


In a painter

StepsTo select a picture for a toolbar item:

  1. Select the Pictures tab page of the Properties view for a Toolbar control.

  2. To select pictures to add to the toolbar picture array, do one of the following :

  3. Select the Items tab page of the Properties view for the Toolbar control.

  4. Specify a picture index number for each item on the Items tab page that you want to associate with a picture.

    The picture index number must correspond to the row number of a picture you selected in the PictureNames list.


In scripts

The ItemPictureIndex property has an integer datatype. The following example sets the picture associated with a toolbar button to the second picture in the toolbar picture array:

tbi_myToolbarItem.ItemPictureIndex = 2





Copyright © 2004. Sybase Inc. All rights reserved. ItemPictureIndex[ ]

View this book as PDF