Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Sashform with toggle-like child visibility
Sashform with toggle-like child visibility [message #232713] Thu, 05 April 2007 16:14
Eclipse UserFriend
Originally posted by:

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
editor ;

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
composite ?
- 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...

Previous Topic:Question about notification events
Next Topic:WARNING: Prevented recursive attempt to activate part...
Goto Forum:

Current Time: Fri Aug 19 01:39:49 GMT 2022

Powered by FUDForum. Page generated in 0.01748 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top