Creating a custom presentation

To add a menu to a CommonPoint program interface, you need to add it to the presentation. The presentation for a given program is controlled by a presenter. The presenter is responsible for managing all the presentable aspects of a document component, for example, views, menus, tool palettes, and dialogs.

The difference between a presenter and a view is important:

In the previous steps, the Tiles program used the default presenter provided by the Presentation framework, TGUIPresenterFor<TTilesView>. For each Tiles document component, this default presenter:

If you want a presenter to provide different or additional user interface elements, you need to derive your own. This step demonstrates how to create a presenter that extends the main menu, and how to build a document component based on this presenter using one of the Presentation framework stationery template classes. The new menu contains items that let the user change any selected tiles to red, green, or blue, and items that let the user add a particular type of tile to the model:



[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