TeeChart v7 Point Color does not change until double click

TeeChart for ActiveX, COM and ASP
Post Reply
KingDesigns
Newbie
Newbie
Posts: 7
Joined: Thu Oct 07, 2004 4:00 am
Location: Leesburg, Georgia
Contact:

TeeChart v7 Point Color does not change until double click

Post by KingDesigns » Tue Mar 24, 2009 6:03 pm

I am using TeeChart v7 and have been working on this issue all morning. I am checking my data points on the chart against a set of control limits. When the data point is outside of the limits I want to change the point color to RED.

I have drop down box that allows the user to select different variables and the data is displayed for that variable. The chart is displayed initially for the first variable in the list and the data points that are out of limits show in RED.

But when a different variable is selected the data points are not shown in RED for the ones that are out of limits. But when I double click the chart, the points are shown in RED.

What am I missing? I have ColorEachPoint set to True.

Vince

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Wed Mar 25, 2009 8:40 am

Hi Vince,

As you probably are doing, you should use OnGetSeriesPointerStyle event to check your conditions and set the according color to your points.

What you may be forgetting is to force entering to this event when one of this conditions has changed. So, could you verify that you are repainting the chart after changing a condition?

Code: Select all

TChart1.Environment.InternalRepaint
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

KingDesigns
Newbie
Newbie
Posts: 7
Joined: Thu Oct 07, 2004 4:00 am
Location: Leesburg, Georgia
Contact:

Post by KingDesigns » Wed Mar 25, 2009 3:02 pm

Yes that did it. I knew that there had to be something that I was missing, I just wasn't sure what it was.

Thank you!

Post Reply