Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic context menu (Read 1655 times)
nick00
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 44
Joined: Nov 7th, 2008
context menu
Jan 15th, 2009 at 9:20pm
Print Post  
If I right click on the any node I want to show contextmenu,

Code
Select All
 private void diagram_NodeClicked(object sender, MindFusion.Diagramming.NodeEventArgs e)
	  {
		if (e.MouseButton == MouseButton.Right && e.Node != null)
		{
		    cmtest.Show(diagramView, diagramView.PointToClient(MousePosition));
		}
		//MessageBox.Show(String.Format("I am {0}",((ShapeNode)e.Node).Text));
	  }
 


but it gives runtime error, at cmtest.Show()
even there is no null value for diagramView, i tries diagram instead still same error
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: context menu
Reply #1 - Jan 16th, 2009 at 9:32am
Print Post  
Perhaps cmtest is null?
  
Back to top
 
IP Logged
 
nick00
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 44
Joined: Nov 7th, 2008
Re: context menu
Reply #2 - Jan 20th, 2009 at 8:42pm
Print Post  
perfect
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint