Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Scroll linktables. (Read 3109 times)
Mrini
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 34
Joined: Aug 18th, 2009
Scroll linktables.
Aug 18th, 2009 at 1:51pm
Print Post  
Hi,
   I used two link-tables for showing the mapping between certain contents.


I want to display the normal scroll-bars to both tables and also need synchronization in scrolling between the tables so that if one table scroll, other should also get automatically scroll.


Thanks in advance.

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Scroll linktables.
Reply #1 - Aug 18th, 2009 at 4:11pm
Print Post  
Hi,

That's not possible with the current version. For the next release we could add a TableScrolled event to let you synchronize the tables.

There's no built-in support for using standard Swing scrollbars. You might try showing a scrollbar in response to tableSelected and handling the scrollbar events by calling the TableNode.setCurrentRow method. If you manage do that, you might as well call setCurrentRow on both tables to synchronize them.

Stoyan
  
Back to top
 
IP Logged
 
Mrini
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 34
Joined: Aug 18th, 2009
Re: Scroll linktables.
Reply #2 - Aug 19th, 2009 at 7:09am
Print Post  
Hi Stoyo,

Thanks for the reply.
Its working perfect on mouseWheelMoved event Smiley.

Is there any way to show scroll bars for link-tables?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Scroll linktables.
Reply #3 - Aug 19th, 2009 at 11:57am
Print Post  
Hi,

There is no built-in support for scrollbars. You might try adding your own scrollbars to the pane returned by JFrame.getGlassPane(), at the right-side positions of tables. Any controls you add to the glass-pane should appear over the diagram view. E.g. you could add scrollbars in response to the nodeSelected event and remove them from the deselected handler.

Stoyan
  
Back to top
 
IP Logged
 
Mrini
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 34
Joined: Aug 18th, 2009
Re: Scroll linktables.
Reply #4 - Aug 19th, 2009 at 12:47pm
Print Post  
Sorry to trouble you but Can you please provide me the code hints for that.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Scroll linktables.
Reply #5 - Aug 20th, 2009 at 8:47am
Print Post  
I'm afraid I can't, but our developer will add built-in scrollbars in a couple of weeks.
  
Back to top
 
IP Logged
 
Mrini
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 34
Joined: Aug 18th, 2009
Re: Scroll linktables.
Reply #6 - Aug 20th, 2009 at 9:20am
Print Post  
Ok thanks.  Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint