Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Dynamic size composite
Dynamic size composite [message #451756] Tue, 08 March 2005 15:53 Go to next message
Eclipse UserFriend
Originally posted by: rodrigo.im.ufba.br

Hi,

In my application there is a Group whose contents change based on user's=
=

choice. When the contents change, the Group isn't resized to fit them (t=
he =

Group is inside a Composite with RowLayout). What can I do to resize the=
=

Group based on its contents?

Thanks,
Rodrigo
Re: Dynamic size composite [message #451767 is a reply to message #451756] Tue, 08 March 2005 17:32 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
Call layout(true) on the parent Composite with the RowLayout. You need to
call layout(true) on the parent of the topmost parent that you expect to
change size due to this change.

If you are using 3.1, you can call group.getShell.layout(new
Control[]{group});

This will determine exactly which parents in the parent hierarchy need to be
resized.


"Rodrigo Rocha" <rodrigo@im.ufba.br> wrote in message
news:op.snbs3q1z23h1qe@kurumin...
Hi,

In my application there is a Group whose contents change based on user's
choice. When the contents change, the Group isn't resized to fit them (the
Group is inside a Composite with RowLayout). What can I do to resize the
Group based on its contents?

Thanks,
Rodrigo
Previous Topic:Different radio button groupings in the same shell
Next Topic:Looking for input masking and data validation widgets for SWT
Goto Forum:
  


Current Time: Thu Apr 25 16:45:28 GMT 2024

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

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

Back to the top