
58
Class Reference
4.2.5.2
prepend(control)
The
prepend
function places the specified
control
as the first control in the specified
menu or form.
Format:
<MenuOrForm_name>.prepend(control);
Where:
control
– the control to
prepend
to the menu.
Note: A control cannot be used more than once in a menu or form.
Example:
See forms example in section 3.2.2.
4.2.5.3
setActiveChild(control)
The setActiveChild selects (but does not activate) the specified control when the menu or
form is displayed. This method is optional.
Format:
<MenuOrForm_name>.setActiveChild(control);
Where:
control
– the control to
select
when the menu is displayed.
Example:
See forms example in section 3.2.2.
Note: You must show the form/menu after setting the active child in order for this function
to work properly.
4.2.6
Form and Menu Common Properties
The properties and methods described in the following section are common to the
gui.Menu
and
gui.Form
objects.
4.2.6.1
caption
The
caption
property is a string that is used by
gui.showForm
,
gui.showMenu
, and
gui.showSubMenu
to display a caption in the status bar of the OHV300
gui
object.
Format:
<MenuOrForm_name>.caption = "<caption_string>";
Example:
See forms example in section 3.2.2.
Содержание 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...