Method XbpMenuBar():isEnabled() Foundation

Returns whether an Xbase Part is enabled.

Syntax
:isEnabled() --> lEnabled
Return

This method returns the value .T. (true) when the Xbase Part is enabled, otherwise it returns .F. (false).

Description

An Xbase Part can be temporarily marked as "not selectable" using the method :disable(). If this is done, the Xbase Part is inaccessible to the user. Whether the Xbase Part is accessible is determined using the method :isEnabled().

Unlike other Xbase Parts derived from class XbpWindow, a menubar object cannot be disabled. The :isEnabled() method implemented in class XbpMenuBar can be used to determine whether :disable() was used to temporarily disable all menu items added to a menubar.

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.