Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Prevent ShapeNode text from being changed (Read 1628 times)
JB
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 8
Joined: Jan 20th, 2009
Prevent ShapeNode text from being changed
Feb 5th, 2009 at 10:11am
Print Post  
Hi,
I'm evaluating FlowChart.Net and am using Trial version 5.1.1.
How do I prevent users from changing the text of my ShapeNode? The DiagramView.AllowInplaceEdit is set to false but when I double click on the node I can still change the text.
According to the Help file there should also be a AllowModify property on the ShapeNode but my node don't have it. Is it because I'm using the trial version?
Thanks,
Johan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Prevent ShapeNode text from being changed
Reply #1 - Feb 5th, 2009 at 10:22am
Print Post  
Hi,

This should not happen. Please verify that in runtime you are using the same DiagramView for which you set AllowInplaceEdit = false in design time. If you are using the LoadFromXml method of DiagramView, check if there isn't AllowInplaceEdit = true value saved in the XML file. You might also look for calls to DiagramView.BeginEdit in your code; calling this method starts inplace edit operation, without checking AllowInplaceEdit.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
JB
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 8
Joined: Jan 20th, 2009
Re: Prevent ShapeNode text from being changed
Reply #2 - Feb 5th, 2009 at 10:36am
Print Post  
Thanks Stoyan, it was indeed the LoadFromXml that overrode my design time value. If I set diagramViewProcessFlow.AllowInplaceEdit = false; after the load it works great. Cheesy
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Prevent ShapeNode text from being changed
Reply #3 - Feb 5th, 2009 at 10:39am
Print Post  
Great 8) You might as well use the xml methods of the Diagram class instead of DiagramView, if you don't wish these values to be persisted.

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