Using the default presentation

A document component consists of a model and a presentation, but the Presentation framework includes a default presentation you can use with any model. This means that to create a simple document component, you only need to create a model defining the data and a view that can provide a visual representation of that data. The view should include a DrawContents function that the framework can call to display the contents of the associated model.

The default presentation provided by the Presentation framework creates a window on the view and a default set of menus, as shown in this diagram:


The Presentation framework provides a stationery class that takes your model and view and creates a default presentation on it. This class is described later in this step, in "Using stationery classes" on page 20. Most of the information in this step focuses on how to design and implement the Tiles model and view.


[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