Method XbpToolBarButton():clear() Foundation
Removes all menu items defined for a tool bar button's drop-down menu.
:clear() => self
:clear() returns the object executing the method (self).
After a tool bar button is added to a toolbar, the method :clear() can be used to remove/clear all menu items defined for its drop-down menu. After :clear() is called, the method :numItems() returns zero and selecting the toolbar button's drop-down arrow has no effect.
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.