Method XbpToolBarButton():numItems() Foundation
Returns the number of menu items defined in a tool bar (button's) drop-down menu.
:numItems() => nItems
:numItems() returns a numeric value with the number of menu items currently defined in the drop-down menu of the XbpToolBarButton object executing the method.
After a tool bar button is added to a tool bar object, the method :numItems() can be used to determine the number menu items defined for the button's drop-down menu. The item count increases each time a new menu item is added using :addItem(), and decreases each time :delItem() is called.
Drop-menus are only supported for tool bar button objects that have the XBPTOOLBAR_BUTTON_DROPDOWN style. See the instance variable :style for further information.
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.