Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic pen.width not updating (Read 1521 times)
ampersand
Junior Member
**
Offline



Posts: 55
Joined: Sep 21st, 2006
pen.width not updating
Oct 16th, 2006 at 5:59pm
Print Post  
when I try to set the width of the line around a box with

(flowChart.ActiveObject as Box).Pen.Width = 0.5;

the objects line width is not updating until I deselect the box or select another object.

If I use

(flowChart.ActiveObject as Box).PenWidth = 0.5;

the box is updating immediately.

Is this a bug or am I missing something?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: pen.width not updating
Reply #1 - Oct 16th, 2006 at 7:17pm
Print Post  
Pen objects do not keep references to the boxes that contain them, nor to the flowchart, so setting their properties won't refresh the view. You could call FlowChart.Invalidate() to repaint the chart after setting the Pen.Width.

Stoyan
  
Back to top
 
IP Logged
 
ampersand
Junior Member
**
Offline



Posts: 55
Joined: Sep 21st, 2006
Re: pen.width not updating
Reply #2 - Oct 17th, 2006 at 6:13pm
Print Post  
Thanks for clarifying

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