
49
Class Reference
Where:
<form_name>
– program-provided form control.
onOk
– function for handling the enter key. The OHV300 calls this function when the
operator presses the enter key on the OHV300 keypad and the active control is not a
button.
onCancel
– function for handling the
CLEAR
key. The OHV300 calls this function when
the operator presses the key on the OHV300 keypad and the active control is not an
edit
control. This function is also called when the escape key is issued as a softkey.
onKey
– function for handling any key, soft or real, not consumed by the active control
(section 4.2.6.2).
To add a label to the form in the status area, set the form's
caption
property to a string
containing the label.
Example:
See section 3.2.2.
4.2.3.4
gui.Image
The
gui.Image
constructor creates an image object that can be displayed in the OHV300
GUI form.
Format:
var <image_name> = new gui.image(name);
Where:
<image_name>
– program-provided image control.
name
– string; the name of an image file in file storage (section 4.2.3.4).
Example:
var myForm = new gui.Form();
var image = new gui.Image("MyImage.img");
myForm.append(image);
gui.showForm(myForm);
The image can be up to 128x128 pixels depending on the form. Images are not cropped;
they either display in their entirety or do not display at all.
The image file format is specific to the OHV300.
Содержание 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...