Adding menus

This step demonstrates how to add a menu to the Tiles program. You'll learn how to:

This step shows you two ways to build your menu: programmatically with C++ code, and using the cpConstructor` GUI Development Tool for the CommonPoint application system. The cpConstructor tool lets you build interfaces visually and create archives containing the localizable portions of the interface.

The code provided online for this step contains both versions of the Tiles program, delineated by the symbol USE_ARCHIVES, so that you can see how the code differs when you build a menu programmatically or resurrect it from an archive. By default the USE_ARCHIVE symbol is not defined, so if you compile the program the menu will be built programmatically.

NOTE For information on installing the cpConstructor tool, see cpConstructor GUI Development Tool.

Creating a custom presentation
Building a menu programmatically
Building a menu with the cpConstructor tool
Implementing TCreateTileCommand
Creating a document component using TTilesPresenter
Code walkthrough

[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