Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Programatic Scrolling (Read 2456 times)
koosala
Full Member
***
Offline


Java Happens

Posts: 136
Joined: May 13th, 2007
Programatic Scrolling
Sep 10th, 2007 at 2:14am
Print Post  
Hi,

I want to move a box when I move my mouse, so I have written my own method handling the mousemoved event.

When the mouse comes close to a border of the canvas or crosses it even, the canvas should scroll. I could write the scrolling logic myself, but I was wondering if there is any existing functionality I can use. There is already default behavior you have provided when dragging a box.

Thanks,
Praveen
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Programatic Scrolling
Reply #1 - Sep 10th, 2007 at 7:21am
Print Post  
Hi,

You could use the checkAutoScroll method. Take a look at how the control uses it in FlowChart.java.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint