How to Set and Restore a Clipping Region in QuickBASIC (44134)
This article was previously published under Q44134
SUMMARY
This article explains how to use the SetClip toolbox library (MBLC)
routine to establish a clipping region in Microsoft QuickBASIC Version
1.00 for the Apple Macintosh.
To use SetClip, you pass to it a handle of a region that already
exists. SetClip copies the given region. It does not use the actual
region you pass to it. The clipping region and the copied region are
two different resources. This means that any changes you make to the
copied region do not affect the clipping region.
Using the DisposeRgn library routine on the copied region does not
reset the clipping region. Once the clip region is set, its definition
remains constant until it is redefined with another CALL to SetClip.
If you want to restore graphics output to the whole window, you must
reset the clipping region to include the entire window region. An
example of how to do this is shown below.
Modification Type: |
Minor |
Last Reviewed: |
1/9/2003 |
Keywords: |
KB44134 |
|