Composit.pack() vs Shell.layout() [message #446619] |
Mon, 29 November 2004 19:02 |
Eclipse User |
|
|
|
Originally posted by: fleque.users.NoSpam.sourceforge.net
Hi all,
actually they both don't work for me.
Here is my problem:
I have a View with GridLayout(numColumns = 2). First line two Composites
on the second line a third spaning both columns.
On some user interaction I have to relayout (actually only the second
Composite in the first row) as items get visible or ExpandableComposites
(org.eclipse.ui.forms) get expanded.
Unfortunately I don't know of other ways to relayout than to use
Composite.pack() or Shell.layout(boolean). I invoke them on the parent
composite or the containing shell, but both produce the same result. My
Composites are layouted to some minimal size and only after resizing the
view they fit themselves into the client area.
Can anyone help me with that. I tried setting the size of the shell when
relayout it neccessary, this works but one can see the controls first
beeing small and then resised.
Regards Alex
|
|
|
Re: Composit.pack() vs Shell.layout() [message #446630 is a reply to message #446619] |
Tue, 30 November 2004 09:45 |
Eclipse User |
|
|
|
Originally posted by: fleque.users.NoSpam.sourceforge.net
OK, I admit: stupid question!
Found out myself that there is Composite.layout() as well, wich does
everything I need ... Alex
Fleque wrote:
> Hi all,
>
> actually they both don't work for me.
> Here is my problem:
> I have a View with GridLayout(numColumns = 2). First line two Composites
> on the second line a third spaning both columns.
> On some user interaction I have to relayout (actually only the second
> Composite in the first row) as items get visible or ExpandableComposites
> (org.eclipse.ui.forms) get expanded.
> Unfortunately I don't know of other ways to relayout than to use
> Composite.pack() or Shell.layout(boolean). I invoke them on the parent
> composite or the containing shell, but both produce the same result. My
> Composites are layouted to some minimal size and only after resizing the
> view they fit themselves into the client area.
>
> Can anyone help me with that. I tried setting the size of the shell when
> relayout it neccessary, this works but one can see the controls first
> beeing small and then resised.
>
> Regards Alex
|
|
|
Powered by
FUDForum. Page generated in 0.03223 seconds