Method XbpMenuBar():selectItem() Foundation

Sets the default menu item.

:selectItem( [<nItemIndex>] ) --> lSuccess
<nItemIndex> is a numeric value specifying the ordinal position in the menu object of the menu item set as the default.

This method returns the value .T. (true) if the default menu item could be set, otherwise it returns .F. (false).


The :selectItem() method determines which menu item is highlighted (or selected) when the menu is activated. If no parameter is specified, the default menu item is displayed when the menu is activated.

Windows does not support this method.


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.