Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Has ScrollBar different behaviour in SWT and RWT?
Has ScrollBar different behaviour in SWT and RWT? [message #1064474] Wed, 19 June 2013 08:39 Go to next message
Andreas Kulzer is currently offline Andreas Kulzer
Messages: 10
Registered: January 2013
Junior Member
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 #1064478 is a reply to message #1064474] Wed, 19 June 2013 08:58 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan Furnadjiev
Messages: 1783
Registered: July 2009
Senior Member
Hi Andreas,
as you don't have complaint about RAP behavior, maybe the RCP forum is a
better place to ask this question :-) . Please keep as informed if you
find something about the problem.
Thanks,
Ivan

On 6/19/2013 3:39 PM, 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?
>
>
> Thx

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Has ScrollBar different behaviour in SWT and RWT? [message #1064481 is a reply to message #1064478] Wed, 19 June 2013 09:07 Go to previous message
Andreas Kulzer is currently offline Andreas Kulzer
Messages: 10
Registered: January 2013
Junior Member
Ok, I created a new Thread in the RCP rubric:
http://www.eclipse.org/forums/index.php/t/489258/
Previous Topic:Can RAP be used to convert/transform web application to desktop application?
Next Topic:Tomcat hangs on shutdown
Goto Forum:
  


Current Time: Thu Jul 31 17:59:27 EDT 2014

Powered by FUDForum. Page generated in 0.02427 seconds