When running in rich client platform (RCP) mode, you can
use additional Console UI components called widgets to add
additional functionality.
Rich client widgets enable a Console UI interface to behave less
like a character-based interface and more like a graphical user interface.
EGL supports the following rich client widgets:
- buttons
- check boxes
- single-selection widgets, such as radio button groups, list boxes,
or combo boxes (also called drop-down boxes)
In general, using a rich client widget in your Console UI program
involves these steps:
- Create the widget as a field in a console form and specify the
properties for the field.
- In the Console UI program, create a variable to represent the
state of the widget:
- For check boxes, create a BOOLEAN variable.
- For single-selection widgets, create an INT variable.
- For buttons, no variable is needed.
- With the bind clause of the openUI statement,
bind the variable to the widget. This step is not required for button
widgets because the button widgets do not need a variable.
- Create an event handler for the widget:
- For check boxes, use the ConsoleCheckbox.STATE_CHANGED event.
- For combo boxes, use the ConsoleCombo.SELECTION_CHANGED event.
- For radio button groups, use the ConsoleRadiogroup.SELECTION_CHANGED event.
- For list boxes, use the ConsoleList.SELECTION_CHANGED event.
- For buttons, use the ConsoleButton.PUSHED event.
See the following topics:
These widgets are supported only when running in RCP mode. See Console UI modes.