
57
Class Reference
4.2.4
Predefined Softkey Objects
The softkey objects described in this section are defined by the OHV300 JavaScript
library.
4.2.4.1
backSoftkey
The
gui.backSoftkey
object defines a softkey object. It labels the softkey “Back” and
sends the escape key when the softkey is clicked.
Example:
gui.rightSoftkey = gui.backSoftkey;
4.2.4.2
cancelSoftkey
The gui.cancelSoftkey object defines a softkey object. It labels the softkey “Cancel” and
sends the escape key when the softkey is clicked.
Format:
gui.rightSoftkey = gui.cancelSoftkey;
4.2.4.3
okSoftkey
The
gui.okSoftkey
object defines a softkey object. It labels the softkey “OK” and sends
the enter key when the softkey is clicked.
Format:
gui.leftSoftkey = gui.okSoftkey;
4.2.4.4
selectSoftkey
The
gui.selectSoftkey
object defines a softkey object. It labels the softkey “Select”
and sends the enter key when the softkey is clicked.
Example:
gui.leftSoftkey = gui.selectSoftkey;
4.2.5
Form and Menu Common Methods
4.2.5.1
append(control)
The
append
function places the specified
control
as the last control in the specified
menu or form.
Format:
<MenuOrForm_name>.append(control);
Where:
control
– the control to append.
Note: A control cannot be used more than once in a form or menu.
Example: See section 3.2.2.