Skip to main content



      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 09:03 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 Mar 16 16:25:05 EDT 2025

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

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

Back to the top