Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Selection behavior (Read 3448 times)
MUDO
Junior Member
**
Offline



Posts: 90
Joined: Nov 29th, 2008
Selection behavior
Jan 10th, 2009 at 11:57pm
Print Post  
Hi!

How can I get ability to do this:

I want to select shape & move it without 2x clicks. Now I select shape with the first click and after the second click it is possible to move that shape.

I tried to find answer by trying to set behavior property but there is no option to do this.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Selection behavior
Reply #1 - Jan 11th, 2009 at 2:25pm
Print Post  
Hi,

Set DiagramView.ModificationStart = AutoHandles.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
MUDO
Junior Member
**
Offline



Posts: 90
Joined: Nov 29th, 2008
Re: Selection behavior
Reply #2 - Jan 12th, 2009 at 11:47am
Print Post  
Thanx, that is a great solution!

Another "problem is" moving a shape/table. On table it is possible to drag it using header of table and to drag a shape using a middle square of selection rectangle.

Is it possible to use whole shape/table area to move a shape/table?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Selection behavior
Reply #3 - Jan 12th, 2009 at 11:54am
Print Post  
Try with node.HandlesStyle = HandlesStyle.EasyMove;

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
MUDO
Junior Member
**
Offline



Posts: 90
Joined: Nov 29th, 2008
Re: Selection behavior
Reply #4 - Jan 12th, 2009 at 3:26pm
Print Post  
OK, thanx and how to do these two modes:

1) I want ONLY to move & resize ShapeNode (every interior point is used for moving and not for creating link)
2) I want ONLY to create links from every interior point without changing

So it menas two modes for handling shapes Wink


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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Selection behavior
Reply #5 - Jan 12th, 2009 at 3:51pm
Print Post  
You want these two modes to works on the same node, e.g. by toggling them with CTRL or SHIFT?
  
Back to top
 
IP Logged
 
MUDO
Junior Member
**
Offline



Posts: 90
Joined: Nov 29th, 2008
Re: Selection behavior
Reply #6 - Jan 12th, 2009 at 3:54pm
Print Post  
Yes, on the same node.

Shortcut is not important now and yes for example CTRL or SHIFT.


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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Selection behavior
Reply #7 - Jan 12th, 2009 at 4:09pm
Print Post  
You could set HandlesStyle = Custom, handle the HitTestAdjustmentHandles event, and there check the pressed state of the key and return a result depending on it. Returning -1 will start creating a link, returning 8 starts moving the node, 0-3 correspond to the corner resize points, 4-7 to the middle-side resize points.

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