Method XbpMenu():disable() Foundation

Disables the Xbase Part.

Syntax
:disable() --> lSuccess
Return

This method returns the value .T. (true) when the Xbase Part could be marked as "disabled", otherwise .F. (false) is returned.

Description

:disable() temporarily deactivates the menu object so that it can no longer be accessed with the keyboard or the mouse. The dialog element is reactivated using the :enable() method.

Unlike other Xbase Parts derived from class XbpWindow, a menu object cannot be disabled. To simulate disabled state, the :disable() method implemented in class XbpMenu uses method :disableItem() to temporarily disable all menu items added to the menu object. In addition, if the object is a submenu, the method also disables the corresponding item in the parent menu. A submenu is a XbpMenu object which is added to another menu or menubar object using the method :addItem().

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.