Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ON PAD Command
Collapse the table of content
Expand the table of content

ON PAD Command

Visual Studio .NET 2003

Specifies the menu or menu bar that is activated when you choose a specific menu title.

ON PAD MenuTitleName OF MenuBarName1   [ACTIVATE POPUP MenuName
   | ACTIVATE MENU MenuBarName2

Parameters

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.

See Also

ACTIVATE MENU | DEFINE MENU | ON SELECTION MENU | ON SELECTION PAD

Show:
© 2015 Microsoft