Method XbpToolBarButton():addItem() Foundation
Adds an item to the menu of a drop-down tool bar button.
:addItem( [<cCaption>], [<cKey>] ) => <oMenu>
The method :addItem() returns a reference to the XbpToolBarButtonMenuItem object added to the tool bar button's menu item array.
The method :addItem() is used to add a new menu item to a tool bar button's drop-down menu. tool bar buttons with a drop-down menu are defined by passing the XBPTOOLBAR_BUTTON_DROPDOWN style in the <nStyle> parameter to XbpToolBarButton:addItem(). Alternatively, the button's :style instance variable may be used to set this style.
The items added to a button's drop-down menu are displayed when the user selects the drop-down arrow next to the tool bar button's image. When a menu item is selected, a xbeTBAR_ButtonMenuClicknotification is sent to the XbpToolBar object that contains the tool button.
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.