Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » invisible elements in layouts
invisible elements in layouts [message #463133] Thu, 27 October 2005 18:18 Go to next message
Adam Pordzik is currently offline Adam PordzikFriend
Messages: 19
Registered: July 2009
Junior Member
Hello,

I have an composite with n elements and want to hide one or more
inside this Composite, so that the remainings children share the
remaining space among them.

Just setVisible() on those widgets and calling layout() on parenting
composite doesn't helped me.

Thanks for hints, I have no idea where to look for anymore.

A

+----+----+----+----+
| W1 | W2 | W3 | W4 |
+----+----+----+----+

should become e.g.:

+------+------+-----+
| W1 | W3 | W4 |
+------+------+-----+


--
Re: invisible elements in layouts [message #463134 is a reply to message #463133] Thu, 27 October 2005 18:42 Go to previous messageGo to next message
Ricky is currently offline RickyFriend
Messages: 204
Registered: July 2009
Senior Member
> +----+----+----+----+
> | W1 | W2 | W3 | W4 |
> +----+----+----+----+
>
> should become e.g.:
>
> +------+------+-----+
> | W1 | W3 | W4 |
> +------+------+-----+

Using a GridLayout and setting the field exclude on a GridData object to
true works for me.

Ricky
Re: invisible elements in layouts [message #463135 is a reply to message #463134] Thu, 27 October 2005 18:49 Go to previous messageGo to next message
Adam Pordzik is currently offline Adam PordzikFriend
Messages: 19
Registered: July 2009
Junior Member
Ricky wrote:

> Using a GridLayout and setting the field exclude on a GridData object to
> true works for me.

Thanks, but I want to keep compatible to 3.0.
Re: invisible elements in layouts [message #463158 is a reply to message #463135] Fri, 28 October 2005 10:50 Go to previous messageGo to next message
Ricky is currently offline RickyFriend
Messages: 204
Registered: July 2009
Senior Member
>> Using a GridLayout and setting the field exclude on a GridData object
>> to true works for me.
> Thanks, but I want to keep compatible to 3.0.

If 3.0 does not differ to much from 3.1 maybe you can extract the class.
Layouts are very independent and GridLayout seems not to have unusual
dependencies.

Ricky
Re: invisible elements in layouts [message #463208 is a reply to message #463158] Sun, 30 October 2005 19:16 Go to previous messageGo to next message
Sebastian Machhausen is currently offline Sebastian MachhausenFriend
Messages: 6
Registered: July 2009
Junior Member
Hi Ricky,

is it really true that this field has been removed in 3.1? I'm using swt from the eclipse 3.2M2 branch and it is still in and as far as i can see it hasn't changed since 3.0. There is no compatibilty issue on that.

Greetings
Sebastian
Re: invisible elements in layouts [message #463216 is a reply to message #463208] Mon, 31 October 2005 12:17 Go to previous message
Ricky is currently offline RickyFriend
Messages: 204
Registered: July 2009
Senior Member
Hi Sebastian,

> is it really true that this field has been removed in 3.1? I'm using swt
> from the eclipse 3.2M2 branch and it is still in and as far as i can see
> it hasn't changed since 3.0. There is no compatibilty issue on that.

I think you misunderstood the argument. Adam Pordzik pointed out that
GridLayout is not an option for his problem as he want to stay compatible
to 3.0. I do not know the API differences between 3.0,3.1 and 3.2 but
assume he is right. So I suggested to extract/backport the 3.1 GridLayout
class to 3.0.

Am I right or do I need more coffee? :)

Ricky

PS
I looked at the GridData API and indeed the exclude attribute was
introduced in 3.1. But backporting GridLayout should be possible as it is
common to implement custom layouts and GridLayout does no black magic (as
far as I can see on first glance)
Previous Topic:Home for SWT JFreeChart
Next Topic:How to start swt project? How to use maven on swt project?
Goto Forum:
  


Current Time: Thu Apr 18 14:16:07 GMT 2024

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

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

Back to the top