Previous Next

Widget phrase
References a widget in a statement. The Widget phrase is used in the APPLY, ON, and WAIT-FOR statements.
Note:
Syntax 
 
{     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 
}
FRAME frame
Specifies a frame widget. The frame parameter must be the name of an existing frame.
[ FIELD ] field [ IN FRAME 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.
column [ IN BROWSE browse ]
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
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.
MENU-ITEM menu-item [ IN MENU 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.
handle
Variable or field that specifies a valid widget, procedure, or system 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 65.
 
Table 65:

1
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.

2
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.

Note 
For information on how to access widget attributes and methods, see the “Accessing handle attributes and methods” section.

Previous Next
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates.