Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Selection Rectangle - only on diagram background, not on nodes? (Read 2281 times)
ulthien
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 91
Location: Munich
Joined: Nov 29th, 2011
Selection Rectangle - only on diagram background, not on nodes?
Dec 6th, 2012 at 1:18pm
Print Post  
Currently (after longer pause on this part of code) i have disabled

ModifierKeyActions.Control = ModifierKeyAction.Select;

Selection Rectangle, as i reused ctrl- drag to implement node cloning on drop.

====

but...

how to have a Selection Rectangle that works only when drawn from diagram background (without and modification key), and not starting on nodes?

namely, i have

ModificationStart = ModificationStart.AutoHandles;

that allows node moving on drag (without prior selection), and here i added ctrl- drag to clone on insert. So starting of select rectangle with ctrl- is no more feasible.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Selection Rectangle - only on diagram background, not on nodes?
Reply #1 - Dec 6th, 2012 at 2:25pm
Print Post  
Create a custom behavior class that returns new InteractionState(Diagram.Selection, -1, Action.Create) from the StartDraw override, when there are no nodes under the mouse pointer.

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


I love YaBB 1G - SP1!

Posts: 91
Location: Munich
Joined: Nov 29th, 2011
Re: Selection Rectangle - only on diagram background, not on nodes?
Reply #2 - Dec 6th, 2012 at 3:04pm
Print Post  
Thank you, will have a look at it Smiley

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