Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » GridLayout - strange behaviour
GridLayout - strange behaviour [message #448311] Thu, 06 January 2005 22:05 Go to next message
Eclipse UserFriend
Originally posted by: bogdan.b.bb.pl

I was trying to temporaly turn off some widgets,
i try to setVisible(false) and re-layout panel,
but this doesn't work and there was empty spaces
where previously were widgets.

Next I try to set GridData.heightHint = 0,
but there was some to much space between two neighbour widgets.

Next I try to set GridData.veritalSpan to 0,
but it seems to me that widget,
which had horizontalSpan set to 2, was layout as
it has horizontalSpan set to 1.

When I try to set horizontalSpan to 0,
exception was thrown.


Is it posible to set controls to invisible and
layout panel as invisible controls where not added to panel?

bogdan
Re: GridLayout - strange behaviour [message #448389 is a reply to message #448311] Fri, 07 January 2005 16:06 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
What you are trying to do is currently not supported.

You must dispose of the widget in order to remove it from the layout.

See:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=58401

Alternately you could use a FormLayout.

"bogdan" <bogdan@b.bb.pl> wrote in message
news:crkcmt$k56$1@www.eclipse.org...
>I was trying to temporaly turn off some widgets,
> i try to setVisible(false) and re-layout panel,
> but this doesn't work and there was empty spaces where previously were
> widgets.
>
> Next I try to set GridData.heightHint = 0,
> but there was some to much space between two neighbour widgets.
>
> Next I try to set GridData.veritalSpan to 0,
> but it seems to me that widget, which had horizontalSpan set to 2, was
> layout as it has horizontalSpan set to 1.
>
> When I try to set horizontalSpan to 0,
> exception was thrown.
>
>
> Is it posible to set controls to invisible and layout panel as invisible
> controls where not added to panel?
>
> bogdan
>
>
Re: GridLayout - strange behaviour [message #448402 is a reply to message #448311] Fri, 07 January 2005 22:41 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
https://bugs.eclipse.org/bugs/show_bug.cgi?id=49426

"bogdan" <bogdan@b.bb.pl> wrote in message
news:crkcmt$k56$1@www.eclipse.org...
> I was trying to temporaly turn off some widgets,
> i try to setVisible(false) and re-layout panel,
> but this doesn't work and there was empty spaces
> where previously were widgets.
>
> Next I try to set GridData.heightHint = 0,
> but there was some to much space between two neighbour widgets.
>
> Next I try to set GridData.veritalSpan to 0,
> but it seems to me that widget,
> which had horizontalSpan set to 2, was layout as
> it has horizontalSpan set to 1.
>
> When I try to set horizontalSpan to 0,
> exception was thrown.
>
>
> Is it posible to set controls to invisible and
> layout panel as invisible controls where not added to panel?
>
> bogdan
>
>
Previous Topic:DropTarget cleanup (COM-level) does not seem to be complete (org.eclipse.swt.SWTError: Cannot initia
Next Topic:Style bits for widgets
Goto Forum:
  


Current Time: Fri Apr 19 22:28:01 GMT 2024

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

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

Back to the top