
44
Class Reference
4.2.2.2
key
The
gui.key
property is a read-only object containing number constants specifying keys
for use with the
gui.sendKey
method. The constants are named:
up
down
left
right
enter
back (“CLEAR” on the keypad)
escape
home
end
leftSoftkey
rightSoftkey
Constants
escape
,
home
, and
end
have no keypad counterpart.
Constants
leftSoftkey
and
rightSoftkey
represent the left and right software
programmable keys on the OHV300.
4.2.2.3
leftSoftkey
The
gui.leftSoftkey
property identifies an event handler for the
onClick
property of
a
gui.Softkey
object and the key label, associated with the left programmable key on
the OHV300. The application program defines a
gui.Softkey
object. See the example in
section 0
Setting
gui.leftSoftkey
to null disassociates the softkey object from the property
(removing the event handler and the softkey label).
When menus and forms are shown using the
gui.showMenu
,
gui.showSubMenu
, and
gui.showForm
methods, the
gui.leftSoftkey
property is set automatically.
4.2.2.4
rightSoftkey
The
gui.rightSoftkey
property identifies an event handler for the
onClick
property
of a
gui.Softkey
object and the key label, associated with the right programmable key
on the OHV300. The application program defines a
gui.Softkey
object. See the
example in section 0.
Setting
gui.rightSoftkey
to null disassociates the softkey object from the property
(removing the event handler and the softkey label).
When menus and forms are shown using the
gui.showMenu
,
gui.showSubMenu
, and
gui.showForm
methods, the
gui.rightSoftkey
property is set automatically.