
19
Programming Concepts
The Select button sends gui.softkey.enter to run the highlighted application. In this
example, the Inventory option is selected. The script then displays the Inventory submenu
shown in Figure 5.
Figure 5 – Sub Menu Demo Display
3.2.4
Text
Use the gui.Text object (section 4.2.3.11) to show text. Text may exceed the display area,
toggling the arrow buttons to view all data. This should not be used to control text within
menus or forms.
3.3
Event
The JavaScript environment is event driven. The reader firmware waits for an event such
as a pressed key. The application gains control of an event by setting an object's event
properties to functions. Events include:
send and receive of communications packets
decode operations
pressed keys
command execution
change of reader mode (idle, standby, and power down)
An application gains control only when:
The reader application defines an event property.
The application creates a function and assigns it to the event property.
The event occurs.
The application can disable an event by setting the event property to null.
Содержание 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...