Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Node : selection through text or attached node (Read 2143 times)
dku
YaBB Newbies
*
Offline



Posts: 41
Joined: Jun 5th, 2008
Node : selection through text or attached node
Aug 20th, 2008 at 9:06am
Print Post  
Hello,

I've 2 questions :

1) Is that possible to select a node by clicking on its text ? (text is below the node - custom shape node)

2) I've a node with another node attached to it as a label. Is that possible that clicking on the slave node fire the selection for the master node ?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Node : selection through text or attached node
Reply #1 - Aug 20th, 2008 at 11:18am
Print Post  
Hello,

1) That's not possible.

2) You could do this by handling the NodeClicked event. Assuming your label nodes are locked:

if (e.Node.Locked)
     diagram.Selection.Change(e.Node.MasterGroup.MainItem);

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



Posts: 41
Joined: Jun 5th, 2008
Re: Node : selection through text or attached node
Reply #2 - Aug 20th, 2008 at 11:53am
Print Post  
Ok, thanks.

For (1), I can build a node with a label (built as an attached node) and then use method (2).

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