Hi,

I have a question about how to obtain an effect similar to minimizing a pane in 
Eclipse. Let's consider the example from below. I have a ProportionalLayout 
because I want to fill the entire space and be able to resize the inside panes. 
Now, I would also like to have some way of collapsing one of the panes and have 
the rest resize to fill the rest of the space. It's a bit like I would need 
some part of a behavior from the TableLayout.

Can anyone provide me with some hints in this direction? Do I need to create a 
new Layout?

| container morph1 morph2 morph3 window |
container := PanelMorph new.
morph1 := PanelMorph new fillStyle: (SolidFillStyle color: Color red).
morph2 := PanelMorph new fillStyle: (SolidFillStyle color: Color blue).
morph3 := PanelMorph new fillStyle: (SolidFillStyle color: Color yellow).
container changeProportionalLayout.
container addMorph: morph1 fullFrame: (LayoutFrame fractions: (0 @ 0 corner: 1 
@ 0.33)).
container addMorph: morph2 fullFrame: (LayoutFrame fractions: (0 @ 0.33 corner: 
1 @ 0.66)).
container addMorph: morph3 fullFrame: (LayoutFrame fractions: (0 @ 0.66 corner: 
1 @ 1)).
container addPaneSplitters.
container fillStyle: (SolidFillStyle color: Color yellow).
container extent: 400@400.
container openInWindow.

Cheers,
Doru


--
www.tudorgirba.com

"Be rather willing to give than demanding to get."




Reply via email to