
56
Class Reference
Example:
// form event handlers
// button control event handler
function toggleOnClick(checked)
{reader.writeSetting(0xa7, checked);}
// create the form object
var myForm = new gui.Form();
// create the button
var toggle =
new gui.ToggleButton("Vibrate", false, toggleOnClick);
// position the controls on the form
myForm.append(toggle);
// Place text on the status bar
myForm.caption = "toggle demo";
// show the form
gui.showForm(myForm);
Initially shows the form in Figure 14.
Figure 14 – Toggle Not Selected
Pressing the left softkey (OK) toggles the indicator, as shown in Figure 15, and turns on the
vibrate feature of the OHV300. Pressing OK again turns off the indicator and the vibrate
feature.
Figure 15 – Toggle Selected
Содержание 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...