Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Toggle selection (Read 1641 times)
marie
Full Member
***
Offline



Posts: 147
Joined: Nov 11th, 2008
Toggle selection
Apr 29th, 2009 at 1:50pm
Print Post  
Hi,

I want to be able to toggle selection when ctrl is down. When user ctrl-clicks on a node, it is added to the selection. If the node is already in the selection, it should be removed from it.

In order to do that, I thought I would create my own code that handles selection by handling diagram.Clicked & diagram.NodeClicked. However, since I have diagramView.Behavior = DrawLinks, the selection is already handled before NodeClicked is called.

How can I manually handle selection and still be able to draw links? Am I supposed to use Custom Behavior?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Toggle selection
Reply #1 - Apr 29th, 2009 at 1:55pm
Print Post  
With what Behavior value doesn't Ctrl+Click toggle the selection? Ctrl+Click should toggle the selection, while Ctrl+drag selects all nodes that intersect with the selection rectangle.

Stoyan
  
Back to top
 
IP Logged
 
marie
Full Member
***
Offline



Posts: 147
Joined: Nov 11th, 2008
Re: Toggle selection
Reply #2 - Apr 29th, 2009 at 2:02pm
Print Post  
Hi,

Yes, it does Smiley! I guess my own code was hidding that functionnality.

Thanks a lot!
Marie
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint