Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Selecting and moving shapes with just one mouse click. (Read 2404 times)
Jan Meyer
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 23
Joined: Feb 26th, 2012
Selecting and moving shapes with just one mouse click.
Apr 23rd, 2012 at 9:44am
Print Post  
What steps do I need to take to implement a more PowerPoint-like way of selecting and moving nodes?

This means that the user will select a shape by pressing the mouse button, but the button keeps pressed while the user is moving the selected shape.

When just I use the following methods to setup my diagram application ...

diagramView.setBehavior(Behavior.Modify);

shapeNode.setHandlesStyle(HandlesStyle.MoveOnly);

... the user has to release the mouse button, move the mouse cursor a little, then mouse cursor will change its shape, then he has to press the button again, and finally he can move the shape. This behavior is a bit inconvenient.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Selecting and moving shapes with just one mouse click.
Reply #1 - Apr 23rd, 2012 at 9:47am
Print Post  
Try that with DiagramView.setModificationStart(ModificationStart.AutoHandles);

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint