Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Has ScrollBar different behaviour in SWT and RWT?
Has ScrollBar different behaviour in SWT and RWT? [message #1064479] Wed, 19 June 2013 13:03 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 #1064573 is a reply to message #1064479] Thu, 20 June 2013 01:08 Go to previous message
Wojtek  is currently offline Wojtek
Messages: 47
Registered: August 2011
Member
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 :-)
Previous Topic:Which eclipse listener should I use to add annotations to an editor
Next Topic:Package Explorer hiding children files
Goto Forum:
  


Current Time: Sun Sep 21 20:22:17 GMT 2014

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

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