Issue with Preferene Pages [message #327951] |
Fri, 09 May 2008 08:00  |
Eclipse User |
|
|
|
Originally posted by: avikram.novell.com
Hi,
I am trying to add a new property page, with a non-default width. I added
the following routine doComputeSize to do that,
protected Point doComputeSize()
{
Point size;
size = baseComposite.computeSize( SWT.DEFAULT, SWT.DEFAULT );
baseComposite.setSize(size);
return size;
}
It works perfectly on Windows, but on Linux I get a horizontal scroll bar
when the width is more than the default width that a preference page has
to accomodate for the extra width. The actual width of the page remains
same. The same code works perfectly on Windows.
If you try invoking the page second time, it works perfectly even on Linux.
I was curious whether anybody else has seen an issue like this.
There was another issue,
How can one dynamically change the size of a preference page. There is no
layout() available for a preference page, isn't it?
thanks for the help,
aditya
|
|
|
Re: Issue with Preferene Pages [message #328013 is a reply to message #327951] |
Mon, 12 May 2008 10:17  |
Eclipse User |
|
|
|
Originally posted by: avikram.novell.com
any help on this would be appreciated.
--aditya
aditya vikram wrote:
> Hi,
>
> I am trying to add a new property page, with a non-default width. I added
> the following routine doComputeSize to do that,
>
> protected Point doComputeSize()
> {
> Point size;
>
> size = baseComposite.computeSize( SWT.DEFAULT, SWT.DEFAULT );
> baseComposite.setSize(size);
>
> return size;
> }
>
> It works perfectly on Windows, but on Linux I get a horizontal scroll bar
> when the width is more than the default width that a preference page has
> to accomodate for the extra width. The actual width of the page remains
> same. The same code works perfectly on Windows.
>
> If you try invoking the page second time, it works perfectly even on
> Linux. I was curious whether anybody else has seen an issue like this.
>
> There was another issue,
> How can one dynamically change the size of a preference page. There is no
> layout() available for a preference page, isn't it?
>
> thanks for the help,
> aditya
|
|
|
Powered by
FUDForum. Page generated in 0.03077 seconds