[BUG] scaling a TinyPaint

Craig Latta Craig.Latta at NetJam.ORG
Tue Feb 12 02:20:40 UTC 2002


Hi--

-	(TinyPaint new openInWorld)
-	Draw some stuff.
-	Resize via halo.
-	Drawing no longer works.

but...

-	(TinyPaint new openInWorld)
-	Rotate via halo.
-	Draw some stuff.
-	Resize via halo.
-	Drawing still works.

	It seems that a side effect of SketchMorph>>extent:, inherited by
TinyPaint, is that brush strokes are recorded on a different form
(<<brush<<destForm) than the one displayed (<<rotatedForm), because the
latter gets reassigned. What's the right fix? I suppose I should
interpose a TransformationMorph at some point, a la Morph>>addFlexShell.
Do I add a TinyPaint>>extent: and do it there? Should I do this after
the outer morph opens (when the TinyPaint has an owner)?

	I'd like this to work so that I can embed a TinyPaint in a morph with a
table layout, filling space in both directions.


	thanks,

-C

--
Craig Latta
composer and computer scientist
craig.latta at netjam.org
www.netjam.org
crl at watson.ibm.com
Smalltalkers do: [:it | All with: Class, (And love: it)]



More information about the Squeak-dev mailing list