Has ScrollBar different behaviour in SWT and RWT? [message #1064479] |
Wed, 19 June 2013 09:03  |
Eclipse User |
|
|
|
Hello,
I found out, that ScrollBar has different behaviour in SWT and RWT. Strange to say, that ScrollBar´s behaviour in RWT is more correct as in SWT?!?!
The Problem:
With RWT the following code works as expected:
oScrolledForm.pack();
oScrolledForm.getVerticalBar().setSelection(100);
With SWT the following happens:
1) when I call pack() before setSelection(100), nothing happens, the scrollBar cannot be manipulated
2) when I DO NOT call pack() before setSelection(100), the scrollBar gets scrolled down, but the content in the ScrolledForm doesn´t scroll down.
What I do wrong?
Or is it a Bug?
Is there any workaround?
Thx
|
|
|
Re: Has ScrollBar different behaviour in SWT and RWT? [message #1064573 is a reply to message #1064479] |
Wed, 19 June 2013 21:08  |
Eclipse User |
|
|
|
Andreas Kulzer wrote :
> Hello,
>
> I found out, that ScrollBar has different behaviour in SWT and RWT. Strange
> to say, that ScrollBar´s behaviour in RWT is more correct as in SWT?!?!
> The Problem:
> With RWT the following code works as expected:
>
>
> oScrolledForm.pack();
> oScrolledForm.getVerticalBar().setSelection(100);
>
>
> With SWT the following happens:
> 1) when I call pack() before setSelection(100), nothing happens, the
> scrollBar cannot be manipulated
> 2) when I DO NOT call pack() before setSelection(100), the scrollBar gets
> scrolled down, but the content in the ScrolledForm doesn´t scroll down.
>
> What I do wrong?
> Or is it a Bug?
> Is there any workaround?
bug 54785
Created in 2004!
Go and vote for it please
--
Wojtek :-)
|
|
|
Powered by
FUDForum. Page generated in 0.04207 seconds