[Bug] More on PluggableTextMorphs

Mark Guzdial guzdial at cc.gatech.edu
Wed Feb 28 17:55:08 UTC 2001


I have a quicker way of replicating this bug (at least, it seems to 
me that it is):
- Create a PluggableTextMorphWithModel new openInWorld (just to 
create a pluggable text morph that you can actually type into).  If 
you want to convince yourself that it works, just type into it for a 
bit.
- Now create any kind of holder.  Either create an AlignmentMorph 
(AlignmentMorph new openInWorld) or just pull a holder out of the 
Supplies flap
- Now embed the PluggableTextMorphWithModel into the AlignmentMorph 
or into the Holder.  Type into the PluggableTextMorphWithModel -- all 
your typing will come out in reverse, because the cursor stays at 0.

Playing with the AlignmentMorph, I finally figured out a fix, at 
least for the PlayWritingWorkbench.  Removing the TableLayout made 
the PluggableText work, but screwed up the ordering of objects. 
Changing the TableLayout to a Proportional one worked fine.  (I just 
saw Ned's posting, and I think I'm doing something similar to what 
he's proposing.)

FYI: Fix is at 
http://coweb.cc.gatech.edu:8888/cs2340/uploads/PWW-3.0-fixes.1.cs

But playing with the TableLayouts still doesn't fix the HeadMorphs -- 
their hair is still in their names.

Mark

>I'm still trying to get PluggableTextMorphs working under 3.0. 
>Here's the weird new discovery:  If I pull the PluggableTextMorph 
>*out* of its AlignmentMorph, it works fine.  But if the 
>PluggableTextMorph is inside an AlignmentMorph, I lose the cursor 
>after every keystroke.  (I tried to remove all of my AlignmentMorphs 
>and make my overall PlayBench into a subclass of Morph instead of 
>AlignmentMorph, but I caused a VM crash, and the emergency evaluator 
>crashed when I tried to exit.  <sigh>)
>
>Mark
>--------------------------
>Mark Guzdial : Georgia Tech : College of Computing : Atlanta, GA 30332-0280
>Associate Professor - Learning Sciences & Technologies.
>Collaborative Software Lab - http://coweb.cc.gatech.edu/csl/
>(404) 894-5618 : Fax (404) 894-0673 : guzdial at cc.gatech.edu
>http://www.cc.gatech.edu/gvu/people/Faculty/Mark.Guzdial.html

--------------------------
Mark Guzdial : Georgia Tech : College of Computing : Atlanta, GA 30332-0280
Associate Professor - Learning Sciences & Technologies.
Collaborative Software Lab - http://coweb.cc.gatech.edu/csl/
(404) 894-5618 : Fax (404) 894-0673 : guzdial at cc.gatech.edu
http://www.cc.gatech.edu/gvu/people/Faculty/Mark.Guzdial.html





More information about the Squeak-dev mailing list