Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic High light the selected node (Read 2774 times)
madhan1
Full Member
***
Offline


FOLLOW NO ONE BUT LEARN
FROM EVERY ONE ..

Posts: 101
Location: India
Joined: Feb 17th, 2010
High light the selected node
Jul 11th, 2012 at 4:18am
Print Post  
Dear stoyan,

             how to high light a selected node
  

if you want something then go and grab it
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: High light the selected node
Reply #1 - Jul 11th, 2012 at 6:13am
Print Post  
Change e.Node.Brush from NodeSelected / NodeDeselected events, or draw some kind of highlight from the DrawAdjustmentHandles event handler.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
madhan1
Full Member
***
Offline


FOLLOW NO ONE BUT LEARN
FROM EVERY ONE ..

Posts: 101
Location: India
Joined: Feb 17th, 2010
Re: High light the selected node
Reply #2 - Jul 11th, 2012 at 10:48am
Print Post  
Dear stoyan,

     i used the following code  in Nodeselected event. but it is not working

SolidBrush myBrush = new SolidBrush(Color.Red);
              e.Node.Brush = myBrush;
  

if you want something then go and grab it
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: High light the selected node
Reply #3 - Jul 12th, 2012 at 7:34am
Print Post  
What's not working?
  
Back to top
 
IP Logged
 
madhan1
Full Member
***
Offline


FOLLOW NO ONE BUT LEARN
FROM EVERY ONE ..

Posts: 101
Location: India
Joined: Feb 17th, 2010
Re: High light the selected node
Reply #4 - Jul 12th, 2012 at 7:36am
Print Post  
the node is not changing the color
  

if you want something then go and grab it
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: High light the selected node
Reply #5 - Jul 12th, 2012 at 11:28am
Print Post  
If you are using ControlNodes, you will have to change some property of the hosted controls, such as BackColor. There's no way the Brush property to not work for other node types, unless you are custom-drawing them and not using the specified brush.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint