Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
ViewerCallbackSample
Last Revision: | Version 1.0, 2003-01-14 First Version |
Build Requirements: | |
Runtime Requirements: | Carbon |
Prior to QuickDraw 3D 1.6 it was only possible to have a window with a grow box that resized the Viewer's dimensions and always fill the entire window. This was done by setting the Viewer's kQ3ViewerDrawGrowBox flag. Some applications still need a resizable window and a resizable Viewer but wish to resize them independently. A new flag kQ3ViewerPaneGrowBox has been added so the Viewer can be resized in it's own pane. Setting this flag draws a grow box inside the Viewer's control strip which accepts mouse clicks and resized the Viewer when the user click in it. This sample show the appearance of the Viewer with this new flag, and demonstrates how the new viewer callback mechanism works.
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-14