SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.
Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg
I want to set a Group/Composite invisible such that it not only does not appear but also no longer takes up space on its parent composite.
If i setVisible(false), the child becomes invisible but still takes up the space that it had allocated on the parent.
How do I overcome this?
Is subclassing the composite and overriding the computeSize(), an accepted approach?
Thanks for the help.
- Posts: 3
- Joined: Wed Apr 15, 2009 1:26 am
I imagine that would depend a great deal on the layout manager you are using. Setting its size to 0x0 might work in some cases.
General SWT questions like this shoulkd be addressed to the Eclipse SWT newsgroup.
- Posts: 4503
- Joined: Tue Sep 30, 2003 6:39 am
- Location: Boston, MA USA
Return to SWT Designer
Who is online
Users browsing this forum: No registered users and 2 guests