References a widget in a statement. The Widget phrase is used in the APPLY, ON, and WAIT-FOR statements.
{ FRAME frame | [ FIELD ] field [ IN FRAME frame ] | column [ IN BROWSE browse ] | { MENU | SUB-MENU } menu | MENU-ITEM menu-item [ IN MENU menu ] | handle | system-handle } |
Specifies a frame widget. The frame parameter must be the name of an existing frame.
Specifies a field. The FIELD keyword is optional. The field parameter must be the name of an existing field-level widget: a fill-in, editor, text, slider, toggle box, radio set, selection list, combo box, button, image, rectangle, or browse. Use the IN FRAME option to qualify the widget, if necessary.
Specifies a column or cell in a browse widget. Use the IN BROWSE option to qualify the widget, if necessary. For more information on when you can reference browse columns and cells, see the DEFINE BROWSE statement reference entry.
Specifies a menu or submenu. The menu parameter must be the name of an existing menu. The menu can be a pop-up menu, pull-down menu, or menu bar. Within the widget phrase, ABL does not distinguish between MENU and SUB-MENU.
Specifies an menu item within a menu. The menu item parameter must be the name of an existing menu item. Use the IN MENU option to qualify the menu item, if necessary.
Variable or field that specifies a valid widget, procedure, or system handle.
Specifies a built-in system handle. The system handle parameter must be one of the built-in system handles listed in the following table.
System handle | Description |
---|---|
ACTIVE-WINDOW | A handle to the ABL window that has most recently received input focus during the session. |
CLIPBOARD | A handle to the system clipboard. |
COLOR-TABLE | A handle to information on the current color table. |
COMPILER | A handle to information on the most recently executed COMPILE statement. |
CURRENT-WINDOW | A settable handle to the default window for the ABL session.1, 2 |
DEBUGGER | A handle to the Application Debugger. |
DEFAULT-WINDOW | A handle to the static window created by the AVM for the session. Every session has one static window.1 |
ERROR-STATUS | A handle to information on the last statement executed with the NO-ERROR option. |
FILE-INFO | A handle to information on an operating system file. |
FOCUS | A handle to the field-level widget that currently has keyboard focus (that is, the current field). |
FONT-TABLE | A handle to information on the current font table. |
LAST-EVENT | A handle to the last event received by the program. |
RCODE-INFO | A handle to information on an ABL r-code file. |
SELF | A handle for the widget associated with the currently executing user-interface trigger. |
SESSION | A handle to information on the current ABL session. |
SOURCE-PROCEDURE | A handle to the procedure file that contains the original invocation (RUN statement or function invocation) of the current internal procedure or user-defined function. |
TARGET-PROCEDURE | From within an internal procedure: A handle to the procedure file mentioned, explicitly or implicitly, by the original RUN statement that invoked (perhaps through a chain of super procedures) the current internal procedure.From within a user-defined function: A handle to the procedure file mentioned, explicitly or implicitly, by the original function invocation that invoked (perhaps through a chain of super versions of functions) the current user-defined function. |
THIS-PROCEDURE | A handle to the executing external procedure in which the handle is referenced. |
For information on how to access widget attributes and methods, see the Accessing handle attributes and methods.