Adding menus
This step demonstrates how to add a menu to the Tiles program. You'll learn how to:
- Create a presenter that extends the standard CommonPoint menu to include a special Tiles menu
- Incorporate your presenter into the Tiles program using a new stationery class
- Create a new command that allows the user to add tiles to a Tiles document
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