
50
Class Reference
4.2.3.5
gui.Label
The
gui.Label
constructor creates a label control that can be displayed in the OHV300
GUI menu or form.
Format:
var <label_name> = new gui.Label(text);
Where:
<label_name>
– program-provided label control.
text
– string; the text to be displayed as a label. This property can be changed after the
object is created.
Example:
See the form example in section 3.2.2.
4.2.3.6
gui.Menu
The gui.Menu constructor creates a menu object for the OHV300 GUI. The gui.Menu
constructor defines three event handlers for key events. Event handlers are null if not
specified.
The following controls can be used in a menu:
gui.MenuItem
gui.Separator
gui.ToggleButton
Menu controls must be appended (section 4.2.5.1) or prepended (section 4.2.5.2) to the
menu object.
Format:
var <menu_name> = new gui.Menu(onOk, onCancel, onKey);
Where:
<menu_name>
– program-provided menu.
onOk
– function for handling the enter key. The OHV300 calls this function when the
operator presses the enter key on the OHV300 keypad when the active control is not a
button.
onCancel
– function for handling the
CLEAR
key. The OHV300 calls this function when
the operator presses the
CLEAR
key on the OHV300 keypad and the active control is not
an
edit
control. This function also is called when the escape virtual key is issued (typically
by a softkey).
onKey
– function for handling any key, soft or real, not consumed by the active control
(section 4.2.6.2).
Example: See the menus example in section 3.2.3.
Содержание OHV300
Страница 1: ...FACTORY AUTOMATION MANUAL JAVASCRIPT PROGRAMMING GUIDE...
Страница 88: ...88 Supported JavaScript Core delete function in instanceof new this typeof void...
Страница 93: ...93 Symbology ID Modifier Information...
Страница 94: ...TDOCT 4981_ENG 11 2015...