Morph Q's on alignment and text editing
raymond
raymondasselin at sympatico.ca
Thu Apr 26 02:26:15 UTC 2001
Le Mercredi 25 avril 2001, à 09:53, Ross Boylan a écrit :
Hi Ross, I'm a newbie too so can tell you what I know which is less
than you want...
> I have some newbie questions about morphs.
>
> ALIGNMENT
> I am sticking some morphs into a morph (a RectangleMorph) with
> topToBottom listDirection. I would like them to be along the left
> edge. However, setting listCentering: #topLeft doesn't help. How do
> I achieve the desired effect?
Bring the Halo for your RectangleMorph (right mouse button on Windows
and Command click on your RectangleMorph on Mac)
1) With the red Icon (this a menu) be sure to select 'Drag and Drop'
2) With the red Icon...select layout / tableLayout
3) Drop the morphs you want along the left edge, on your RectangleMorph.
Should be topToBottom
Check the project 'TableLayout' on the BobSuperSwiki...BSS, very
interesting.
> EDITING TEXT
> My subclass of RectangleMorph has an UpdatingStringMorph in it. It
> doesn't seem to be getting any of the text I type. What do I need to
> tweak to make this work?
>
> I am using the UpdatingStringMorph because I have a model elsewhere
> that holds the text; I thought this might be the best way to approach
> it. However, there are a lot of textual things floating around
> (TextMorph, StringMorph, UpdatingStringMorph, and I think some
> others). What should I use in what situation?
> Also, my text (set programmatically) displays with the apostrophes
> around it. The underlying model is 'some text' (a string, not a text
> object). Is there a way to get rid of the "'"?
>
> MENUS
> Currently I'm overriding yellow button down to pop up a MenuMorph.
> But I see lots of menu-y methods around, and wonder if there is a way
> to piggy back my menu onto an existing one.
>
> I'm holding at 3.0 for now.
>
> Thanks.
>
More information about the Squeak-dev
mailing list
|