Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Synchronize Scrolling Question
Synchronize Scrolling Question [message #455693] Thu, 19 May 2005 16:22 Go to next message
Tim Shelley is currently offline Tim ShelleyFriend
Messages: 60
Registered: July 2009
Member
Hi All,

Is there any way I can synchronize horizontal scrollbars on two tables
that have exactly the same width? I've tried doing it with scrolled
composites and using the x origin of the first to set the x of the second
scroll composite.

Is this correct? Anyone know of an example to do this? Thanks in advance.

Regards,

Tim.
Re: Synchronize Scrolling Question [message #455695 is a reply to message #455693] Thu, 19 May 2005 16:53 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse.patcom.demon.co.uk

Hello

I am trying to get this working as well - see my note about Layouts and
Events

I got started with this link
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet167.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup

And managed to get two tables to scroll in tandem. However I am very new
to SWT and am struggling with getting the layout right.

If I drop the Layout from the shell and use the set bounds for the two
ScrollableComposites the tables display just as I want, however the event
listeners stop working

Cheers

Mike
Previous Topic:Table grab all area
Next Topic:Disposing of a shell when a child shell is disposed
Goto Forum:
  


Current Time: Fri Apr 26 12:52:37 GMT 2024

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

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

Back to the top