Adding rich client widgets to a Console UI program

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:
In general, using a rich client widget in your Console UI program involves these steps:
  1. Create the widget as a field in a console form and specify the properties for the field.
  2. 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.
  3. 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.
  4. 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.


Feedback