Widget phrase
References a widget in a statement. The Widget phrase is used in the APPLY, ON, and WAIT-FOR statements.
Note: Does not apply to SpeedScript programming.Syntax
FRAMEframe
[ FIELD ]field
[ IN FRAMEframe
]
Specifies a field. The FIELD keyword is optional. Thefield
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.column
[ IN BROWSEbrowse
]
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.{ MENU | SUB-MENU }menu
MENU-ITEMmenu-item
[ IN MENUmenu
]handle
system-handle
Specifies a built-in system handle. The system handle parameter must be one of the built-in system handles listed in Table 67.
Table 67: System handles 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 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.
- The initial setting of the CURRENT-WINDOW handle is the ABL static window. CURRENT-WINDOW can also be set to the handle of any dynamic window.
- If the THIS-PROCEDURE:CURRENT-WINDOW attribute is set to the handle of a valid window, this window becomes the default window for the executing procedure (overriding the setting of the CURRENT-WINDOW handle). The setting of THIS-PROCEDURE:CURRENT-WINDOW changes the default window only for the current external procedure block.
NoteFor information on how to access widget attributes and methods, see the "Accessing handle attributes and methods" section.
OpenEdge Release 10.2B
|