Legacy Documentclose button

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

View Source Code:

Download Sample (“ZoomRecter.zip”, 44.7K)
Download Sample (“ZoomRecter.dmg”, 101.9K)



Description

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

Document Revision History

Date Notes
2003-10-10First Version

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.