Odd behavior of SystemWindowWithButton and TableLayout
Ross Boylan
RossBoylan at stanfordalumni.org
Fri Jul 20 07:48:38 UTC 2001
I have a subclass of SystemWindowWithButton that I set up like this:
initialize
super initialize.
self color: Color paleYellow;
hResizing: #shrinkWrap;
vResizing: #shrinkWrap;
listDirection: #topToBottom;
wrapDirection: #leftToRight;
layoutPolicy: TableLayout new.
I then populate it with calls to addMorph:
When it's done, the "title bar" appears simply as one of the list
items (the last). Is there a way to get it to stay as the title to
the whole window and yet get the layout? (I assume I could get there
by embedding another window in the SystemWindow; I'm looking for
something a little simpler).
If I addMorphBack: then the title bar appears first and my items are
in "natural" order.
As an aside, is the current behavior in which listDirection:
#topToBottom + addMorph adds each element to the top of the list
really a feature? It seems more like a bug to me.
Thanks.
More information about the Squeak-dev
mailing list
|