Menu programming – CognitiveTPG DLXi User Manual
Page 156

M E N U C O M M A N D S
They can even call printer commands without any user-selectable
menu items, behaving much like stored label formats. Menus can call
other menus, and can also recall and print stored objects or data.
Menu Programming
Menus generally conform to the following structure:
! 0 0 0 0
MENU CONTROL cn nx pr sl
MENU START x menuname
MENU ITEM "item1"
MENU ACTION command parameters
MENU ACTION command parameters
MENU EXIT
MENU ITEM "item2"
MENU ACTION command parameters
MENU ITEM "item3"
MENU ACTION command parameters
...
MENU END
END
MENU CONTROL
is an optional command that defines the four keyboard
keys that scroll the menu, select menu items, and exit the menu. If
used, it must appear before the MENU START command. MENU START
signals the beginning of the menu, and MENU END signals the end of
the menu. All commands bounded by MENU START and MENU END
define menu prompts and actions.
MENU ACTION
s generally follow MENU ITEMs. If no MENU ITEMs are
present, the menu will simply execute the MENU ACTIONs in sequence
without input from the operator. The effect is similar to using a stored
label format.
MENU EXIT
commands will terminate execution of the current menu,
at which time the printer will continue executing the remaining
commands in the label format that called the menu.
Menus cannot be nested within other menus, but they can call other
menus.
Revision F, January 2012, CognitiveTPG
147