
51
Class Reference
4.2.3.7
gui.MenuItem
The
gui.MenuItem
constructor creates a
MenuItem
control for display in a OHV300 GUI
menu. The
onClick
processing function is called when the enter key on the OHV300
keypad is pressed and the
MenuItem
control is active.
Format:
var <menuItemItem_name> =
new gui.MenuItem(text, onClick);
Where:
<menuItem_name>
– program-provided
MenuItem
control.
text
– string; a label for the
MenuItem
.
onClick
– function for handling the
MenuItem
. The OHV300 calls this function when the
operator presses the enter key on the OHV300 keypad when the
MenuItem
is the active
control. Code the function to return Boolean
true
if the control's default processing of the
key should continue. Otherwise, code the function to return
false
; the control will act as if
not clicked.
Example:
See section 3.2.3.
4.2.3.8
gui.MultiLineEdit
The
gui.MultiLineEdit
constructor creates a multiple line edit control for the GUI
screen. The OHV300 operator can enter data into the multiple line edit control. The
gui.MultiLineEdit
constructor consumes the entire GUI screen, so it cannot be
appended/prepended to a menu or form. To access a multiple line edit control from a
menu
Format:
var <multiLineEdit_name> =
new gui.MultiLineEdit(text, defaultInputMode, validInputModes,
onChar);
Where:
<edit_name>
– program-provided multiple line edit control.
text
– string; the initial value for the multiple line edit control. The control contains
text
when it is first displayed on the
gui
screen. This property can be changed after the object
is created.
defaultInputMode
– number; the input mode that is selected when the user navigates
to the edit control and enters data. Modes are defined by
gui.inputMode
(section
Note: The user can change to another input mode using the shift key.
Содержание 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...