A SERVICE OF

logo

The document-viewing classes are a complete abstraction of a generic
Doc/View classes
document-view model. The base classes of the Doc/View model are
TDocManager, TDocument, and TView. The Doc/View model is a system in
which data is contained in and accessed through a document object, and
displayed and manipulated through a view object. Any number of views
can be associated with a particular document type. Y u can use this too
display the same data in a number of different ways.
For example, you can display a line both graphically (as a line in a window)
and as sets of numbers indicating the coordinates of the points that make
up the line. This would require one document that contains the data and
two view classes: one view class to display the line onscreen and another
view class to display the coordinates of the points in the line. Y u can alsoo
modify the data through the views so that, in this case, you could change
the data in the line by either drawing in the graphical display or by typing
in numbers to modify and add coordinates in the numerical display.
The Doc/View model is discussed in depth in Chapter 9.
Since Windows is so varied, not all the classes ObjectWindows provides fall
Miscellaneous
into neat categories. This section discusses those miscellaneous classes.
classes
Menus can be static or you can modify them or even load whole new
Menus
menus. TMenu and its derived classes (TSystemMenu and TP pupMenu) leto
you easily manipulate menus. Chapter 7 discusses the menu classes in
more detail.
The Windows Clipboard is one of the main ways users share data between
Clipboard
applications. ObjectWindows’ TClipboard object lets you easily provide
Clipboard support in your applications. See Chapter 6 for details.
26
OWL P ogrammer’ Guider s