Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Custom control in diagram (Read 1231 times)
shapi
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 9
Joined: Aug 3rd, 2012
Custom control in diagram
Nov 29th, 2012 at 3:53am
Print Post  
Please see the attachment. We place a richtextbox in the diagram, then input some words. The problem is the node moved when I want to select part of words by mouse. How can   I disable the mousemove event when I perfoem a manipulation on the custom control?
  

textbox.png (Attachment deleted)
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Custom control in diagram
Reply #1 - Nov 29th, 2012 at 7:33am
Print Post  
I can think of several ways to do that:

- handle NodeStartModifying and set e.Cancel = true if in edit mode;
- disable the Move flag in node.EnabledHandles;
- use a HandlesStyle that does not move nodes when dragging from within their interior area;
- change diagram.Behavior to DoNothing while editing text;
- set MouseInputMode = HandledByHostedControl if using DiagramNodeAdapter;

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