|Sashform with toggle-like child visibility [message #232713]
||Thu, 05 April 2007 16:14
Originally posted by: benoit.ferrand.infotel.com|
Hello @ all !
I hope that you will not take into account my errors of English syntax,
I do my best to correct that :)
I need to realize a GEF application containing a SashForm in the editor
with, in my case, three vertical sons. The last both sons can :
(1) be resized by the separator of the sashform ;
(2) be hidden by means of a click on a figure inside the editor ;
(3) be visible again by means of a click on the same figure inside the
I detailed below the layout, by getting rid of the last one of three
sons for more legibility :
| (A) |
| (B) |
| (C) |
(A) The "main" (functionnaly speaking) window of my editor (top
composite of my sash).
(B) First view contained in the bottom composite of the sahsform.
The figure that allows, when (C) visible, to hide (C), and when (C)
is hidden to set it visible again.
(C) The second part of the bottom composite of the sahsform. Can be
resized thanks to the split between (A) and (B) (sash split), hidden or
visible when clicking on the (B) figure.
The (B) figure/editpart should therefore always be visible.
*My problems are* :
- I've got difficulties to deny to the user the possibility to move the
separator (which is between (A) and (B)) over (B), with the same
behaviour if the window is resized.
Is it possible, with a Sashform (and not a Sash as it is described in
the Snippet 107 from SWT), to set a minimal height limit for the bottom
- When (C) is visible and when the user clicks onto the (B) figure, I
have to fill the sashform with good weights (ratio). I use as weights
not a percentage (sum is 100), but the pixels each composite should have
as heights (sum is height of the sashform).
However, it seems not to work properly with the bottom composite, (C) is
not completely hidden (some pixel rows are still visible).
Why can't I go lower than a limit that seems to be forced ?
I hope that you did not sleep while reading my laborious mail :) After
having tried several means during several days, I hope you can help me...
Powered by FUDForum
. Page generated in 0.01748 seconds