Specifies the menu or menu bar that is activated when you choose a specific menu title.
Syntax
ON PAD MenuTitleName OF MenuBarName1
[ACTIVATE POPUP MenuName
| ACTIVATE MENU MenuBarName2
Arguments
MenuTitleName OF MenuBarName1
Specifies the menu title to which a menu or menu bar is assigned.
ACTIVATE POPUP MenuName
Specifies the menu to activate when the menu title is chosen. Use ON PAD MenuTitleName OF MenuBarName1 without ACTIVATE POPUP to release a menu from a menu title.
If you specify the system menu bar _MSYSMENU for MenuBarName1, MenuName cannot specify a menu that is created with the DEFINE POPUP PROMPT clause.
ACTIVATE MENU MenuBarName2
Specifies the name of the menu bar to activate when the menu title is chosen. Use ON PAD MenuTitleName OF MenuBarName1 without ACTIVATE MENU to release a menu bar from a menu name.
Remarks
Use ON SELECTION PAD to execute a command when a menu title is chosen.