Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Behavior.Modify (Read 1568 times)
tmtton
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 39
Joined: May 9th, 2008
Behavior.Modify
Dec 5th, 2008 at 3:33pm
Print Post  
Thanks for your great support.

diagramView1.behavior=Behavior.Modify almost gives us what we need. No new item is created; but the new item (e.g. a ShapeNode) still shows up and then gets removed. How do I prevent the node from even showing up?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Behavior.Modify
Reply #1 - Dec 5th, 2008 at 4:20pm
Print Post  
There is a selection rectangle drawn when Behavior == Modify and you start dragging with the mouse. Is that you take for a new node?
  
Back to top
 
IP Logged
 
tmtton
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 39
Joined: May 9th, 2008
Re: Behavior.Modify
Reply #2 - Dec 5th, 2008 at 4:25pm
Print Post  
Yes. No selection rectangle drawn when a user drags with the mouse.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Behavior.Modify
Reply #3 - Dec 5th, 2008 at 5:50pm
Print Post  
You will have to create a custom Behavior class. Derive from ModifyBehavior, override the StartDraw method, and if you detect that the base class returns an InteractionState whose Action is set to Create, return null instead. Assign an instance of your class to the DiagramView.CustomBehavior property.

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