Class XbpToolBarButtonMenuItem() Foundation

Class function of the XbpToolBarButtonMenuItem class

Superclass
Description

Instances of the XbpToolBarButtonMenuItem class are used to access items in a drop-down menu of a tool bar button. The life cycle of XbpToolBarButtonMenuItem objects is closely tied to that of their encompassing tool bar object. Menu item objects cannot exist on their own but are implicitly created when adding menu items to a button of a XbpToolBar object.

An Xbase++ application interacts with instances of the XbpToolBarButtonMenuItem class when it comes to manipulating properties of an item already displayed in a tool bar button's drop-down menu. Both the methods XbpToolBarButton:addItem() and XbpToolBarButton:getItem() return a reference to an XbpToolBarButtonMenuItem object. By assigning values to the button object's instance variables, the application can control the caption displayed by the menu item, for example.

Instance Variables
:caption
Specifies the caption displayed by a drop-down menu item.
:enabled
Specifies whether the menu item is enabled.
:index
Specifies the ordinal position of the menu item within the drop-down menu.
:key
Specifies a key string that uniquely indentifies a menu item.
:visible
Specifies whether a drop-down menu item is visible.
Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.