Please enable JavaScript to view this site.

ESL Documentation

Pull-downs are menus that display a vertical list of choices. The text for a pull-down is displayed in the left portion of the action bar. When a pull-down is selected by the user, the menu is "pulled down" (made visible) so that the user can select one of its choices.

 

_img314

 

When you define a pull-down, you define the text that appears in the action bar as well as the list of choices, separators, and

pull-downs that it displays. Here is the definition for the Options pull-down.

 

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

 

Pull-downs can have an associated parameter (see Item Parameters). The pull-down text, as well as the text of buttons and choices, can contain a mnemonic character (see Mnemonics).

 

You can create cascading pull-downs by nesting pull-downs. The level of nesting varies, depending on the available space and system resources. A pull-down definition cannot reference itself, directly or indirectly.