Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Hide a coolbar
Hide a coolbar [message #454084] Fri, 15 April 2005 19:37 Go to next message
Jens Rossbach is currently offline Jens RossbachFriend
Messages: 14
Registered: July 2009
Junior Member
Hello,

I've created an application using a CoolBar containing s ToolBar. The coolbar is
layouted together with other widgets in the window using a FormLayout. There is
a menu item which should make the coolbar hidden when it's unchecked and visible
when it's checked.

When I call setVisible(false) on the CoolBar to hide it, it is invisible but the
space of the CoolBar is still occupied inside the window. How can I hide the
CoolBar so that other widgets in the window move up and take the free space of
the CoolBar?


Jens
Re: Hide a coolbar [message #454188 is a reply to message #454084] Mon, 18 April 2005 20:21 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Hiding a control does not remove it from layout. You'll need to hide the
control and change the form attachments to fill up the space.

"Jens Rossbach" <web001@jrossbach.de> wrote in message
news:d3p5ho$sad$1@news.eclipse.org...
> Hello,
>
> I've created an application using a CoolBar containing s ToolBar. The
coolbar is
> layouted together with other widgets in the window using a FormLayout.
There is
> a menu item which should make the coolbar hidden when it's unchecked and
visible
> when it's checked.
>
> When I call setVisible(false) on the CoolBar to hide it, it is invisible
but the
> space of the CoolBar is still occupied inside the window. How can I hide
the
> CoolBar so that other widgets in the window move up and take the free
space of
> the CoolBar?
>
>
> Jens
Previous Topic:Strange Shell behaviour
Next Topic:Removing individual TreeItems from a Tree
Goto Forum:
  


Current Time: Fri Feb 26 07:40:40 GMT 2021

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

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

Back to the top