Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Pan movement (Read 1463 times)
liza
Full Member
***
Offline


I Love MindFusion!

Posts: 132
Joined: Apr 25th, 2019
Pan movement
Sep 10th, 2019 at 6:37am
Print Post  
Hi,
I want to give pan movement in diagram, so if the diagram is not showing completely, user can make a drag and get the content in visible window. How I can achieve this. Please help
  
Back to top
AIM  
IP Logged
 
liza
Full Member
***
Offline


I Love MindFusion!

Posts: 132
Joined: Apr 25th, 2019
Re: Pan movement
Reply #1 - Sep 10th, 2019 at 8:00am
Print Post  
I tried using diagView.Behavior = Behavior.Pan;
But in this it is showing me pan icon and effect is not working also it stopped creating node whihc can be created using mouse.
  
Back to top
AIM  
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3378
Joined: Oct 19th, 2005
Re: Pan movement
Reply #2 - Sep 10th, 2019 at 9:15am
Print Post  
Panning will work only if diagram.Bounds is large enough to allow for scrolling. Obviously it cannot both draw a node and pan while keeping fixed diagram point at mouse position; if you have some criteria to decide whether it should either move or pan at a specific diagram location, you could switch the Behavior value from mouse move event handler.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint