Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » GridLayout - strange behaviour
GridLayout - strange behaviour [message #448311] Thu, 06 January 2005 17: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 11:06 Go to previous messageGo to next message
Eclipse UserFriend
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 17:41 Go to previous message
Eclipse UserFriend
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: Sun Jul 13 01:24:11 EDT 2025

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

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

Back to the top