Menu palette

The menu palette is instatiated and given a control layout of top to bottom. The top to bottom control layout means that the menu palette items are listed from top to bottom.

The menu palette text for each menu is adopted last so that it appears after the previous menu item.

The following code instantiates the palette window and adopts the palette window to the window group.

          theMainMenu.AdoptLast (TMarsPresenter::gToolSubMenuItem);
          theMainMenu.AdoptLast (TMarsPresenter::gColorSubMenuItem);
          theMainMenu.AdoptLast (TMarsPresenter::gPenSubMenuItem);
          theMainMenu.AdoptLast (TMarsPresenter::gTextSubMenuItem);

[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker