Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.
Current information on this Reference Library topic can be found here:
|
Version: 1.0 Posted: 2003-10-10 Build Requirements: N/A Runtime Requirements: Carbon (both 9 and X) QuickDraw, CarbonLib Download Sample (ZoomRecter.zip, 44.7K) |
||||
DescriptionThis 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 Document Revision History
|
|