Splitters only work with proportional layouts due to the way they work.
Also, since shrink wrap uses the min width/height and splitters have to work by effectively changing the position or extent of adjacent morphs (not min), things are more limited.

Can you describe the effect you wish to achieve?

Regards, Gary

----- Original Message ----- From: "Tudor Girba" <[email protected]> To: "[email protected] Development" <[email protected]>
Sent: Sunday, January 16, 2011 12:16 PM
Subject: [Pharo-project] splitters in table layout


Hi,

I would like to have splitters used inside a table layout, but I cannot seem to manage. In particular, I would like to have these splitters work with the GeneralScrollPane. I tried something like below, but it seems that the splitters expect a frame layout.

What can I do about it?


| m scroll |
m := PanelMorph new.
m
hResizing: #shrinkWrap;
vResizing: #spaceFill;
changeTableLayout;
listDirection: #leftToRight.
m addMorphBack: (PanelMorph new
minWidth: 100;
hResizing: #shrinkWrap;
vResizing: #spaceFill).
m addMorphBack: (PanelMorph new
minWidth: 100;
hResizing: #shrinkWrap;
vResizing: #spaceFill).
m addPaneSplitters.

scroll := GeneralScrollPane new
changeScrollerTableLayout;
scrollTarget: m.
scroll openInWindow.



Cheers,
Doru




--
www.tudorgirba.com

"Speaking louder won't make the point worthier."



Reply via email to