Page 1 of 1

Changing color of asArea.AreaBrush patterns

Posted: Thu Dec 02, 2004 8:07 pm
by 9080337
Using VB6 with TChart v6.0.0.6

I am trying to modify the color used for the patterns within my area graph.

I can change the background color of an individual area section by using:
graph.Series(0).Color property.

But what I really want to do is set the background color to white and change the color of the pattern itself.

I have tried...
graph.Series(0).asArea.AreaPen.Color
graph.Series(0).asArea.LinePen.Color

What property sets this?

Thanks in advance!

Posted: Fri Dec 03, 2004 10:06 am
by narcis
Hi LundyJ,

The pattern color can be changed easily using the pattern editor color, but the pattern lines are coloured according to the series colour.

Posted: Fri Dec 03, 2004 11:18 am
by Pep
Hi,

I you're trying to change it at runtime, then I mus tell you that it's seems to be a bug and cannot be changed. I've added it on our defect list and a fix for it will be considered to inclusion for the next maintenance releases. In menatime the only workaround is to changing it at design time.

Posted: Fri Dec 03, 2004 3:52 pm
by 9080337
Yes, I am trying to (and need to) change it at runtime. I will wait for the bug fix.

Thanks!