The following action bar template uses many of the features discussed in this section. The action bar it produces is shown after the template, with each pull-down selected in turn.
# This is a pull-down choice defined outside an action bar template
checked choice OpenFile text "~Open File...\tF4"
# Action Bar Template
action bar MainMenu is
pulldown FileMenu text "~File" # This pull-down will be 2 columns
item OpenFile # Item reference to predefined choice
choice NewFile text "~New File...\tF5"
accelerator is KEY_F5
choice SaveFile text "~Save\tF6"
accelerator is KEY_F6
choice SaveAs text "Save ~As...\tAlt+F6"
accelerator is alt KEY_F6
end pulldown
pulldown OptionsMenu text "~Options" # Tab aligns second column
checked choice AutoSave text "Auto ~Save\tF7"
accelerator is KEY_F7
checked choice AutoIndent text "Auto ~Indent\tF8"
accelerator is KEY_F8
choice TabStops text "~Tab Stops...\tF9"
accelerator is KEY_F9
separator
static choice BackupMode text "Backup Mode:"
checked choice NoBackup text "No backup"
choice TempBackup text "Temp backup"
choice SaveBackup text "Save backup"
end pulldown
button HelpButton text "F1 = Help" accelerator is KEY_F1
end action bar
*