Method XbpMenuBar():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 Xbase Part. The Xbase Part cannot be accessed with the keyboard or the mouse and is displayed on the screen as "disabled". The dialog element is reactivated using the :enable() method.

Unlike other Xbase Parts derived from class XbpWindow, a menubar object cannot be disabled. To simulate disabled state, the :disable() method implemented in class XbpMenuBar uses method :disableItem() to temporarily disable all menu items added to the menubar object.

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.