Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Attached Nodes (Read 2136 times)
Amosius
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 75
Joined: Sep 2nd, 2010
Attached Nodes
Jun 16th, 2011 at 10:37am
Print Post  
Hello,

i have a mainnode with 3 attached nodes inside.

I want to display informations with the 3 attached nodes, but all mouseclicks shall be handled by the subjacent mainnode, even when i am over one of the 3 attached nodes.

Do you have a property for this?

Amosius

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Attached Nodes
Reply #1 - Jun 16th, 2011 at 11:05am
Print Post  
Hi,

There's no property for this. You could call the event handler for the main node instead:

Code
Select All
private void OnNodeClicked(object sender, NodeEventArgs e)
{
	if (e.Node.MasterGroup != null)
	{
		OnNodeClicked(sender,
			new NodeEventArgs((DiagramNode)e.Node.MasterGroup.MainItem));
	}
	// etc.
} 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Amosius
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 75
Joined: Sep 2nd, 2010
Re: Attached Nodes
Reply #2 - Jun 16th, 2011 at 1:59pm
Print Post  
Hello Stoyan,

I handled with this codesnippet right clicks for context menu. I also used this in the diagram_NodeDoubleClicked(..)
event handler to edit text.

Works fine now. Thank you.

Amosius

  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint