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.
>> 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.
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.
> 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)