Zooming and resizing
Zooming and resizing
- Subject: Zooming and resizing
- From: David Dunham <email@hidden>
- Date: Thu, 27 Apr 2006 20:35:22 -0700
I've got a popup menu that can scale a scrollable view. I think I
understand how this works, by changing the relative size of bounds
compared to frame.
But what I'd like to do is scale while not resizing the scrollable
view's width. (Circus Ponies Notebook does something like this -- it
will rewrap text to fit, based on the new scale and the same number
of screen pixels to fit to).
My hierarchy is:
ScalingScrollView
NSClipView
MyView
And I want a 2x magnification to change
+----+
| x |
| y |
+----+
to
+----+
| xx|
| xx|
| yy|
| yy|
+----+
(height changes, width doesn't, contents is scaled)
I haven't quite figured out how to make this work. Or been able to
locate sample code.
------------
David Dunham email@hidden http://www.pensee.com/dunham/
"No matter how far you have gone on a wrong road, turn back." -
Turkish proverb
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden