Changing Marks positions with TPointSeries

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Johan Ingemansson
Newbie
Newbie
Posts: 59
Joined: Fri May 28, 2004 4:00 am
Location: Sweden

Changing Marks positions with TPointSeries

Post by Johan Ingemansson » Tue Sep 21, 2004 12:25 pm

Hi,

If I want to change the positions for the marks manually using TPointSeries, I can´t do this unless the the Chart is displayed visually. That is, I can´t change the positions unless I have set the Charts parent to visible. Does anyone know how to solve this problem?

Best Regards,

Johan Ingemansson

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Fri Sep 24, 2004 10:56 am

Hi, Johan.
I can´t do this unless the the Chart is displayed visually
Actually, the marks are created when chart is painted i.e. when the Chart.Draw method is being called. If you want to access series marks before the chart is actually painted, you could call the Chart.Draw method and then access series marks. I haven't tried this approach when TChart.Parent is nil, but using the latest version, together with setting BufferedDisplay to false, it might work just fine.
Marjan Slatinek,
http://www.steema.com

Johan Ingemansson
Newbie
Newbie
Posts: 59
Joined: Fri May 28, 2004 4:00 am
Location: Sweden

Post by Johan Ingemansson » Fri Sep 24, 2004 11:40 am

Hi,

No, this didn´t work, I must set the parent before I can call the Chart.Draw method.

Best Regards,

Johan Ingemansson

Post Reply