'Real' zooming&panning

Karl Ramberg karl.ramberg at chello.se
Sun Nov 2 19:42:17 UTC 2003



Cees de Groot wrote:
> 
> On Sat, 2003-11-01 at 17:15, Ned Konz wrote:
> > How were you doing this?
> >
> With the code I posted. I took a design (a bitmap as background image
> with some PolygonMorphs added to it, one of them showing handles), and
> opened it in a MyTwoWayScrollPane.
> 
> > I don't think the Canvas should do anything different from dumb scaling of
> > whatever gets drawn on it. So the morphs should be scaled, as well as their
> > outlines.
> >
> That's not what you want for a design program (think CAD) - in 99.99% of
> the cases, you want the outline of an element to be drawn with a 1 pixel
> wide border. Furthermore, the PolygonMorph handles should not scale, you
> always want them at the same absolute size because they are user
> interface things, not design elements.
PolygonMorph scales and rotate without transformation morphs. 
You see that when you use the halos. So you need to bypass 
the transformation morph in drawing somehow and use the polygon morphs
own protocols.
 
Karl



More information about the Squeak-dev mailing list