Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Composit.pack() vs Shell.layout()
Composit.pack() vs Shell.layout() [message #446619] Mon, 29 November 2004 19:02 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:StyledText w/ images
Next Topic:gcj: installation problem, cannot exec `cc1'
Goto Forum:
  


Current Time: Thu Mar 28 20:52:53 GMT 2024

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

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

Back to the top