Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Node Pen not resetting (Read 1445 times)
priyanka
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 56
Joined: Sep 2nd, 2009
Node Pen not resetting
Dec 3rd, 2009 at 1:50pm
Print Post  
Hi,

I am providing a dash border for my node using code:

mainNode.Pen.DashStyle = DashStyles.Dash;
mainNode.Pen.Thickness = 2;

then it's setting the border for the node to a dash.
But when I am trying to set the Pen style for the node again to solid like:

mainNode.Pen.DashStyle = DashStyles.Solid;
mainNode.Pen.Thickness = 1;

then the node pen is not reset to a solid boundry.
It shows a lightly dashed line for the node border.
And when we move the mouse over the node then the node border becomes solid.

This issue we are facing with the built 2.2.1 but was working fine with the previous built.

Please let know wat would have gone wrong.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Node Pen not resetting
Reply #1 - Dec 3rd, 2009 at 2:26pm
Print Post  
Call mainNode.Repaint after changing the pen attributes, or assign a new Pen instance to the Pen property.
  
Back to top
 
IP Logged
 
priyanka
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 56
Joined: Sep 2nd, 2009
Re: Node Pen not resetting
Reply #2 - Dec 4th, 2009 at 5:38am
Print Post  
Hi,

Thanks, that solved my problem.!!!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint