IsEnabled Function

Class

AnyWin class.

Action

Tests whether the window is enabled.

Syntax

bEnableStatus = window.IsEnabled()
Variable Description
bEnableStatus TRUE if the window is enabled. BOOLEAN.

Notes

IsEnabled returns TRUE if the window is enabled, or FALSE if it is disabled. When a window is enabled, it is capable of receiving input.

If the OPT_MENU_PICK_BEFORE_GET option is TRUE, you may see menus pop up on the screen when calling IsEnabled on a menu item, even though your code does not explicitly call Pick.

Example

Print(TextEditor.Document.IsEnabled())