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.
ZoomRecter
Last Revision: | Version 1.0, 2003-10-10 First Version |
Build Requirements: | |
Runtime Requirements: | Carbon (both 9 and X) QuickDraw, CarbonLib |
This sample has been updated for the Carbon API. This snippet shows how to do "Finder" style zooming between two rectangles. The boolean flag "kZoomLarger" controls the proportional direction of the zooming. To get the two rectangles, you drag them out rubberbanded, and the zoom occurs between them. To quit, click the close box. If you want to do zooms between windows, open up a port with the dimensions of the desktop (from GetGrayRgn()). DON'T use this as a sample of how to do rubberband drawing!!! It's sort of hacked together bypassing the event mechanism and just using Button(). Requirements: QuickDraw, CarbonLib Keywords: Zoom Rect, Carbon
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-10-10