ViewKit ObjectPak Programmer's Guide

ViewKit Menu Support

OSF/Motif provides the components for building menus (buttons, menu shells, and so on) but does little to make menu construction easy. ViewKit ObjectPak provides a set of classes that facilitate common operations on menus, including creating menu bars, menu panes, popup menus, option menus, and cascading menu panes. The ObjectPak menu package also provides an object-oriented interface for activating and deactivating menu items, dynamically adding, removing, or replacing menus items or menu panes, and performing other operations.

Menu Bar Support

The VkSimpleWindow class is useful for windows that require only a work area. However, windows frequently require menus. By providing support for a menu bar along the top of the window, the VkWindow class extends the VkSimpleWindow class.

Window Manager Interface

The VkSimpleWindow and VkWindow classes set up various properties on the shell window and provide simple hooks for window manager interactions.

Window and Icon Titles

The VkSimpleWindow and VkWindow classes provide easy-to-use functions to set your application's window and icon titles.

Window Class Destructors

The VkSimpleWindow and VkWindow destructors delete all privately allocated data and destroy the views associated with the windows. The VkWindow destructor also destroys any menu bar associated with the window, no matter how you added it (see "Menu Bar Support" ). If you created a subclass, you should provide a destructor to free any space that you explicitly allocated in the derived class.

Pages

Subscribe to ViewKit ObjectPak Programmer's Guide