Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Hide a coolbar
Hide a coolbar [message #454084] Fri, 15 April 2005 15:37 Go to next message
Eclipse UserFriend
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 16:21 Go to previous message
Eclipse UserFriend
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 Jul 04 05:40:39 EDT 2025

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

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

Back to the top