Important: The information in this document is obsolete and should not be used for new development.
Chapter 17 -
This chapter includes recipes and sample code that demonstrate how to
Working With Views
Chapter 8, "Displaying, Manipulating, and Printing Data," provides a detailed overview of MacApp's view facilities.
- work with views (a general outline)
- create views for displaying and printing, or for printing only
- calculate the size of a view
- use an adorner with a view
- define a document class with a text-editing view
Chapter Contents
- Overview
- The TView Class
- Fields of TView
- Methods of TView
- Other View Classes
- Other View-Related Classes
- The TDrawingEnvironment Class
- The TViewServer Class
- Working With View Resource Templates
- Defining View Resources
- Converting Between Resource Formats
- Creating Views From Resource Templates
- Initializing Views Created by Template
- Using Adorners With Views
- Recipes--Views
- Working With Views--A General Outline
- Recipe--Creating Views for Displaying and Printing Versus Printing Only
- Recipe--Calculating the Size of a View
- Recipe--Using an Adorner With a View
- Create and Initialize an Instance of an Adorner
- Call the AddAdorner Method
- Recipe--Using a Document Class With a Text-Editing View
- Create a 'View' Resource With a Text-Editing View
- Call InitUTEView From Your Main Routine
- Provide a Document Class Definition
- Provide Constructor and Destructor Methods
- Provide an Initialization Method
- Override the FreeData Method
- Override the DoMakeViews Method
- Override the DoNeedDiskSpace Method
- Override the DoWrite Method
- Override the DoRead Method
- Override the Application's DoMakeDocument Method
- Make Additional Modifications