User Tools

Site Tools


printpreviewclass_functional_organization_expected_use.htm
Navigation:  ABC Library Reference > PrintPreviewClass > PrintPreviewClass Methods >====== PrintPreviewClass Functional Organization - Expected Use C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

As an aid to understanding the PrintPreviewClass, it is useful to organize its methods into two large categories according to their expected use–the primary interface and the virtual methods. This organization reflects what we believe is typical use of the PrintPreviewClass methods.

Non-Virtual Methods

The Non-Virtual Methods, which you are likely to call fairly routinely from your program, can be further divided into two categories:

Housekeeping (one-time) Use:

Init (v) initialize the PrintPreviewClass object
SetPosition set initial preview window coordinates
Display (v) preview the report
Kill (v) shut down the PrintPreviewClass object

Occasional Use:

SetINIManager save and restore window coordinates
SetPosition set print preview position and size
SetZoomPercentile set user or standard zoom factor

(v) These methods are also Virtual.

Virtual Methods

Typically you will not call these methods directly–the Display method calls them. However, we anticipate you will often want to override these methods, and because they are virtual, they are very easy to override. These methods do provide reasonable default behavior in case you do not want to override them.

InitV initialize the PrintPreviewClass object
AskPage prompt for new report page
AskThumbnails prompt for new thumbnail configuration
Display preview the report
Open prepare preview window for display
TakeAccepted process EVENT:Accepted events
TakeEvent process all events
TakeFieldEvent a virtual to process field events
TakeWindowEvent process non-field events
KillV shut down the PrintPreviewClass object
printpreviewclass_functional_organization_expected_use.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1