Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Synchronized scrollbars
Synchronized scrollbars [message #75009] Wed, 20 February 2008 14:30 Go to next message
Emmanuel Marchal is currently offline Emmanuel MarchalFriend
Messages: 59
Registered: July 2009
Member
Hi,

What is the easiest way to synchronize the ScrollBar of two
ScrolledComposite ? I tried to set the same ScrollBar to the two
composites but there is no way to do that...
I tried to listen one of them with a SelectionListener which sets the
origin of the other at the same origin of the current... It works fine but
only once... The following selectionChanges are only listened when my
ViewPart looses the focus. Is there a good reason for that ?
(composite.redraw() or .layout() does not have any effect)

Thanks,

Emmanuel
Re: Synchronized scrollbars [message #75343 is a reply to message #75009] Mon, 25 February 2008 10:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rherrmann.innoopract.com

Hi Emmanuel,

your second approach (listening to SelectionEvents) should work.
Feel free to file a bug report, ideally with a code attached that
demonstrates the misbehavior.

Cheers,
Rüdiger

Emmanuel wrote:
> Hi,
>
> What is the easiest way to synchronize the ScrollBar of two
> ScrolledComposite ? I tried to set the same ScrollBar to the two
> composites but there is no way to do that...
> I tried to listen one of them with a SelectionListener which sets the
> origin of the other at the same origin of the current... It works fine
> but only once... The following selectionChanges are only listened when
> my ViewPart looses the focus. Is there a good reason for that ?
> (composite.redraw() or .layout() does not have any effect)
>
> Thanks,
>
> Emmanuel
>
Re: Synchronized scrollbars [message #75912 is a reply to message #75343] Wed, 27 February 2008 14:35 Go to previous message
Emmanuel Marchal is currently offline Emmanuel MarchalFriend
Messages: 59
Registered: July 2009
Member
Hi again,

I think that the following bug can be the cause of my problem :
https://bugs.eclipse.org/bugs/show_bug.cgi?id=157058

I observe that my listener does not catch no more selectionEvent after the
first catching. Indeed I call the method setOrigin in my listener. It
seems to be the reason...

Any idea of a bug fix ?

thanks, Emmanuel
Previous Topic:Setting url parameter
Next Topic:simultaneous users of RAP applications?
Goto Forum:
  


Current Time: Mon Sep 23 02:22:24 GMT 2024

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

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

Back to the top