Stitch Controls Together

As controls are dragged and dropped onto pages, they need to be "stitched" together. For example, the Apply button would need to send the right command to HyperWorks with the values from certain text fields as arguments.

Every control allows the author/superuser to provide a callback for the control's action through its properties.

Control Property Name Description
Button OnClicked Callback when the button is clicked.
File Browser OnClicked Callback when a file is selected using the file browser.
TextField/TextArea OnValueChanged Callback when the focus is lost on the text field.
RadioButton OnSelChanged Callback when the selection changes on a group of radio buttons.
CheckBox OnSelChanged Callback when the checkbox is checked/unchecked.
ComboBox OnSelChanged Callback when the selection in the ComboBox changes.
ListBox OnSelChanged Callback when the selected entry is changed.
Slider OnSlide Callback on the slider movement.
Spinner OnValueChanged Callback on change of spinner values.

Each of the above-mentioned control properties provides a simple editor, wherein the callback for the special event can be written. To access the editor, click Script in the text box following the property name for the chosen control. The callbacks can be written as either HWPM script or as Tcl scripts.

Note: Tcl scripts will work only when Process Manager is started from HyperWorks.

Within the callback script of the control, properties of other controls can also be accessed (via the DataModel) as shown in the links below.

When a control is dropped onto an HWPM Page in Process Studio, the control is automatically assigned an instance name. The instance name will show as one of the properties of the control. It is highly recommended that you change the instance name into something more meaningful (user-friendly). The instance name will be used to access or modify any property of the control.

The links below show the properties of various controls as well as how they can be accessed and modified.