Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Can we draw node on another node of diagram? (Read 4481 times)
Yogendra
Junior Member
**
Offline


I Love MindFusion!

Posts: 68
Joined: Dec 27th, 2012
Can we draw node on another node of diagram?
Mar 19th, 2013 at 10:04am
Print Post  
Hi Stoyo,
I am working with diagram of mindfussion.diagramming. Draw a node on canvas area of diagram, make it large as canvas area, try to draw another node on existing node. Is it possible and how?

Thanks in advance. Sad
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Undo redo option is not working.
Reply #1 - Mar 19th, 2013 at 10:05am
Print Post  
Set diagram.Behavior = DrawShapes.

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


I Love MindFusion!

Posts: 68
Joined: Dec 27th, 2012
Re: Can we draw node on another node of diagram?
Reply #2 - Mar 20th, 2013 at 5:27am
Print Post  
Hi Stoyo,

I already used behavior property as modify and I tried to use your solution which is working. But my requirement is different. I have three container which has different type of shape, one is design shape, second is channel and third one is date shape. I can ch Smileyoose one of them and draw it on canvas area of diagram. I have used another behavior property as pan but i can not modify the control. What should i do?

Thanks in advance.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Can we draw node on another node of diagram?
Reply #3 - Mar 20th, 2013 at 8:11am
Print Post  
Hi,

The DrawShapes and DrawContainers behaviors should not prevent you from modifying existing nodes. However you must click once to select a node and show its adjustment handles. Only after that you can modify it by dragging a handle with the mouse.

If you need to allow both panning and modifications at same time, you could switch between Modify and Pan behaviors from MouseMove handler depending on what's under the mouse. Alternatively, you can create a composite custom behavior class that overrides the various OnMouse* methods and delegates them to either PanBehavior or ModifyBehavior instance members.

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


I Love MindFusion!

Posts: 68
Joined: Dec 27th, 2012
Re: Can we draw node on another node of diagram?
Reply #4 - Mar 20th, 2013 at 2:27pm
Print Post  
Thanks Stoyo.  Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint