Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Disallow users to draw nodes with mouse (Read 1621 times)
fanderlf
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 12
Joined: May 5th, 2009
Disallow users to draw nodes with mouse
Aug 18th, 2009 at 2:58pm
Print Post  
Hello,

I've got one little question. How can I forbid that the user can draw nodes with the mouse?

I just couldn't find any setting disallowing the user to draw nodes.

I used this

Code
Select All
private void diagram_NodeCreating(object sender, NodeValidationEventArgs e)
{
  e.Cancel = true;
} 



But here the node is still drawn but is just not added to the diagram (deleted) afterwards. Is there any possibility that the user can't event draw a link?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Disallow users to draw nodes with mouse
Reply #1 - Aug 18th, 2009 at 4:01pm
Print Post  
Hi,

Set DiagramView.Behavior = Modify or DoNothing.

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


I love YaBB 1G - SP1!

Posts: 12
Joined: May 5th, 2009
Re: Disallow users to draw nodes with mouse
Reply #2 - Aug 18th, 2009 at 4:49pm
Print Post  
OK -.- stupid me -.-

DiagramView.Behavior = DrawLink

that was the behaviour I needed... I thought I had it set to that value in the beginning...

anyway Smiley thank you very much!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint