Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to show selection of a custom node (Read 1119 times)
Rennie
Full Member
***
Offline


I Love MindFusion!

Posts: 108
Location: Copenhagen, Denmark
Joined: Jul 17th, 2012
How to show selection of a custom node
May 5th, 2013 at 8:42am
Print Post  
I'm playing with the IconNode sample program, and I've noticed that selected nodes are not displayed as being selected, i.e., there is no selection rectangle shown.

Is there some option to show selection, or does one have to draw the selection rectangle oneself?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to show selection of a custom node
Reply #1 - May 6th, 2013 at 6:03am
Print Post  
The rectangle is drawn, but the white background set there hides the active items' dash frame, which is white by default. You can change the active item's selection color for HandlesStyle=DashFrame like this:

diagram.ActiveItemHandlesStyle.DashPen = new Pen(Color.LightBlue);

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint