
42
Class Reference
4.2.1.10
showSubMenu
The
gui.showSubMenu
method instructs the OHV300 to display the specified menu on
the OHV300 display as a standard
gui
object (section 4.2.3).
Format:
gui.showSubMenu(yourMenu, parentMenu);
Where:
yourMenu
– menu object to show on the display. The object must be a
gui.Menu
object
(section 4.2.3.6).
parentMenu
– parent menu to display in response to
gui.backSoftkey
.
Note: This method does not return a value.
To insert a caption into the status bar, set the
yourMenu.caption
property.
This method sets the left software programmable key to
gui.selectSoftkey
(section
This method sets the right software programmable key to
gui.backSoftkey
(section
4.2.4.1) and sets the menu object’s
onCancel
property to a function that shows the parent
menu.
4.2.1.11
splash and clearSplash
The
gui.splash
method displays an image on the OHV300 screen. The
gui.splash
function should be used in conjunction with the
setTimeout
function. The
setTimeout
function will suspend execution for a provided timeout value. Once the timeout specified in
the
setTimeout
function expires, it will call the function specified in the
setTimeout
to
continue execution.
Format:
gui.splash(imageName, stringText);
setTimeout(func, timeout_ms);
Where:
imageName
– string; the name of the image file to display (section 4.2.3.4).
stringText – string; the text string to be displayed below the image in the softkey area of the
display.
func
– function; the name of the function to be called after timeout.
timeout_ms
– number; the number of milliseconds to wait before timeout of the splash
display.
Содержание 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...