Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Disable/enable in-place edit on a node-by-node basis (Read 2245 times)
Rennie
Full Member
***
Offline


I Love MindFusion!

Posts: 108
Location: Copenhagen, Denmark
Joined: Jul 17th, 2012
Disable/enable in-place edit on a node-by-node basis
May 12th, 2013 at 9:56am
Print Post  
I want in-place edit to work for some nodes and not for others. I've discovered that if I return RectangleF.Empty from the GetEditRect() method then this does effectively disable the in-place edit for that node.

Is this an OK technique that won't cause problems in future versions? If so, could you please add it to the documentation for GetEditRect(), so I can sleep peacefully at night?

Alternatively, if this isn't a technique you want to guarantee for the future, can you suggest another way to implement in-place edit for some nodes and not for others?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Disable/enable in-place edit on a node-by-node basis
Reply #1 - May 13th, 2013 at 7:09am
Print Post  
That probably creates an invisible edit box. Better disable AllowInpalceEdit altogether, and call DiagramView.BeginEdit from NodeDoubleClicked handler only for the nodes you want it enabled.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Rennie
Full Member
***
Offline


I Love MindFusion!

Posts: 108
Location: Copenhagen, Denmark
Joined: Jul 17th, 2012
Re: Disable/enable in-place edit on a node-by-node basis
Reply #2 - May 13th, 2013 at 9:44am
Print Post  
OK, thanks.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint