ON SELECTION PAD
Define actions performed on pad selection in a dBASE-IV style menu
ON SELECTION PAD <pad> OF <menu> [<command>]
The ON SELECTION PAD command defines actions performed on a pad selection within a dBASE-IV style menu. The pad and menu are identified with the names that were assigned with the DEFINE MENU and DEFINE PAD commands. Pad selection occurs when the user moves the highlight onto the menu prompt and presses the [RETURN] key. The command SET COMPATIBLE should be set ON when using Xbase style menus.
If no command is given, ON SELECTION PAD disables previously specified commands. To specify the same selection command for all pads in a menu, use the ON SELECTION MENU command.
define menu main define pad exit of main; prompt "\<Exit" at 0,0 define pad filelist of main; prompt "\<Files" at 0,06 on pad filelist of main activate popup files on selection pad exit of main deactivate menu activate menu main