Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Hiding controls
Hiding controls [message #438607] Mon, 28 June 2004 16:25 Go to next message
Jay Wootton is currently offline Jay WoottonFriend
Messages: 5
Registered: July 2009
Junior Member
I have a property page where I need to dynamically hide controls on the page and have the space occupied by those controls collapse when the controls are hidden. I call control.setVisible( false ) and the control is hidden but the control still takes up space on the control.

Any ideas?

Thanks,
- Jay
Re: Hiding controls [message #438616 is a reply to message #438607] Mon, 28 June 2004 20:01 Go to previous message
Stefan Zeiger is currently offline Stefan ZeigerFriend
Messages: 102
Registered: July 2009
Senior Member
Jay Wootton wrote:

> I have a property page where I need to dynamically hide controls on the page and have the space occupied by those controls collapse when the controls are hidden. I call control.setVisible( false ) and the control is hidden but the control still takes up space on the control.
>
> Any ideas?

This can only be done with FormLayout (or a custom layout manager) and
requires changing the layout data when a control is shown or hidden. See
https://bugs.eclipse.org/bugs/show_bug.cgi?id=49426 for details.

--
Stefan Zeiger http://www.szeiger.de http://www.novocode.com
My SWT controls: http://www.novocode.com/swt
Previous Topic:Removing controls from a composite
Next Topic:Async Thread error
Goto Forum:
  


Current Time: Thu Apr 25 08:37:53 GMT 2024

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

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

Back to the top