Skip to main content


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 12:39 Go to next message
Andreas Kulzer is currently offline Andreas KulzerFriend
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 12:58 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
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 13:07 Go to previous message
Andreas Kulzer is currently offline Andreas KulzerFriend
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:Clientscripting: Trigger traverse programmatically
Next Topic:Replacement for PhaseListeners in RAP 2.x
Goto Forum:
  


Current Time: Thu Apr 18 08:35:05 GMT 2024

Powered by FUDForum. Page generated in 0.01897 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top