Re: Selecting objects, help needed...
Re: Selecting objects, help needed...
- Subject: Re: Selecting objects, help needed...
- From: Charles Jolley <email@hidden>
- Date: Mon, 13 Aug 2001 23:48:50 -0500
As far as the zoom problem goes, say you want to zoom your view to
200%. You could just double the frame size (the bounds will be
automatically doubled as well) and then multiply the coordinates that
each graphic is drawn it by 2. That way, the graphics will be drawn at
the same size, but there will be twice as much space and they will be
separated by twice as great a distance.
Another approach I have used that works very well is to divide the size
of the bounds for your topmost view by your scale factor. For example,
to zoom to 200%, set the bounds to their current setting divided by
two. If you are using a ScrollView, you should do this with the
ClipView. See the TextEdit example for sample code on this.
Cheers,
-Charles