
53
Class Reference
Where:
<separator_name>
– program-provided separator control.
height
– number; the height in pixels of the separator; minimum 1 pixel.
style
– number; the style of the separator.
style
must be selected from one of the
following numeric constants:
gui.separatorStyle.blank
gui.separatorStyle.horizontalLine
gui.separatorStyle.horizontalGroove
gui.separatorStyle.horizontalRidge
The
gui.separatorStyle.horizontalLine
style adds a line in the approximate
center of the separator space as shown in Figure 12.
Figure 12 – gui.Separator Lines
Example:
See the menu example in section 3.2.3.
4.2.3.10
gui.Softkey
The
gui.Softkey
object provides processing control of the programmable or “soft” keys
on the OHV300 just below the display screen.
Format:
var <softkey> = new gui.Softkey(text, onClick);
Where:
<softkey>
– program-provided softkey object.
text
– string; a label for the softkey; displays on the GUI.
onClick
– function; the function to be executed when the softkey is pressed.
Set the
gui.leftSoftkey
or
gui.rightSoftkey
property to
<softkey>
as
appropriate. The OHV300 JavaScript library defines a set of useful softkey objects (section
4.2.4).
Содержание 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...