Which version of SWT required for snippet 175... [message #451304] |
Fri, 25 February 2005 08:46 |
Eclipse User |
|
|
|
Originally posted by: msmiths.uk.ibm.com
Hi,
I am looking for a way of ensuring that invisible widgets are not taken into
account when calculating the layout of GridLayout. I see that snippet 175
claims to be able to do this by setting GridData.exclude to true. However,
I am using SWT version 3.0, and the GridData class does not appear to have
this member. Which version of SWT do need to get this behavior.
The relevant code from snippet 175 is as follows:
final Button bHidden = new Button(shell, SWT.PUSH);
bHidden.setText("Button 1");
GridData data = new GridData();
data.exclude = true;
data.horizontalSpan = 2;
data.horizontalAlignment = SWT.FILL;
bHidden.setLayoutData(data);
Thanks.
|
|
|
|
|
Re: Which version of SWT required for snippet 175... [message #451324 is a reply to message #451310] |
Fri, 25 February 2005 17:39 |
Eclipse User |
|
|
|
Originally posted by: bob.objfac.com
Tom Schindl wrote:
> I don't want to insist on this topic but I've posted yesterday a
> proposal to the SWT-List. About creating an own snippet-page where all
> those things like SWT-Version, ... are covered.
>
> Maybe someone could point me to a place where I should ask about this.
> On swt-Mailling list I didn't get any feedback.
>
> For all those not reading the swt-maillinglist here is what I thought
> about snippets-page:
>
> http://codesnippets.services.openoffice.org/Writer/Writer.Ch angeDocumentBackgroundColor.snip
I wouldn't want to see anything that made more work for the
contributors. The version problem can be solved with a comment in the
code, which is a good place for it.
Bob Foster
|
|
|
Powered by
FUDForum. Page generated in 0.03186 seconds