IMenu


IMenu graphic

Palette category
Frame extensions icon Frame extensions
Palette part choice
IMenu icon IMenu
Short description
IBM menu control
Part type
Nonvisual
Header file
imenu.hpp
Parent class
IStandardNotifier

Use an IMenu* part to provide any of the following menu types:

Menu bar
A menu for a frame window. The menu bar is added as a frame extension below the frame window title. Each choice in a menu bar opens a pull-down menu.

Pull-down menu
A menu for a menu bar choice. The menu appears below the menu bar choice that opens it.

Pop-up menu
A menu for a control or for one or more container objects. The menu appears near the control or objects it is opened for.

Cascaded menu
A menu for a cascade menu choice in either a pull-down menu or a pop-up menu. The menu appears next to the menu choice that opens it.

Add a menu bar to a frame window by dropping an IMenu* part on the free-form surface. Then, add a connection to associate the menu with the frame window. Because the menu bar is added as a frame extension by generated code, you need to leave room in the client area of the frame window. On OS/2, leave room at the top of the client area. On Windows, leave room at the bottom.

Add a submenu for another menu by dropping an IMenu* part on the other menu. VisualAge does the following:


Related procedures
Working with IMenu Parts

Related references
Property Settings -- IMenu
Portability -- IMenu
IFrameWindow
IMenuCascade
IMenuItem
IMenuSeparator
VisualAge User Interface Parts
Class documentation for IMenu