ACTIVATE MENU Command

Example   See Also

Displays and activates a menu bar.

Syntax

ACTIVATE MENU MenuBarName
  [NOWAIT]
  [PAD MenuTitleName]

Arguments

MenuBarName

Specifies the name of the menu bar to activate.

NOWAIT

Specifies that at run time the program should not wait for the user to choose a menu from the active menu bar or to press ESC. Instead, the program continues to execute. A menu activated with the NOWAIT option does not return program execution to the line following the ACTIVATE MENU command when DEACTIVATE MENU is issued.

PAD MenuTitleName

Specifies the menu title name that is automatically selected when the menu bar is activated. If you don't specify a menu title name, the first menu title name in the activated menu bar is activated by default.

Remarks

Displays and activates the menu bar specified with MenuBarName. This command works in conjunction with DEFINE MENU and DEFINE PAD.

Tip   When you include the Visual FoxPro system menu bar (_MSYSMENU) in an application, there is no need to activate the menu. Instead, issue SET SYSMENU AUTOMATIC.