Toolbar control  TraceActivityNode object

Chapter 2: System Object Properties, Events, and Functions

ToolbarItem object

You can add toolbar items to a toolbar on the Items page of the Properties view for a Toolbar object. You must enter a number for the item in the CurrentBarItemIndex text box, then select or clear the ItemEnabled check box for the item and assign it an enumerated value for ItemStyle.

Properties

ToolbarItem property

Datatype

Description

ItemGroup

Integer

Specifies the group of items to which a toolbar item belongs. By default a toolbar item does not belong to a group, in which case its ItemGroup value is 0. If you select stylecheckgroup! for the ItemStyle property of a toolbar item in the Toolbar control Properties view, the ItemGroup value for that item defaults to 1.

ItemPictureIndex

Integer

Specifies the picture you want to associate with a toolbar item. You can add pictures to the picture array in the Toolbar control Properties view or by using the AddPicture function. You can also change the picture associated with a toolbar item by calling SetItemPictureIndex on the Toolbar control. The ItemPictureIndex property is similar to the PictureIndex property on a ListViewItem object.

ItemState

Integer

Specifies the state of the Toolbar item.

ItemStyle

ToolbarItemStyle (enumeration)

Specifies the style of the ToolbarItem. Values are:

  • StyleButton! Specifies a standard button that automatically returns to the up position after a user taps it.

  • StyleCheck! Specifies a button that remains depressed when a user taps it. The user must tap the button a second time to raise it.

  • StyleCheckGroup! Specifies a group of buttons. A button of this style remains depressed after a user taps it, but returns to the up position when the user taps it again or taps a toolbar button of the same style.

  • StyleSeparator! Specifies a separator bar.





Copyright © 2004. Sybase Inc. All rights reserved. TraceActivityNode object

View this book as PDF