Page 1 of 1

Changing Marks positions with TPointSeries

Posted: Tue Sep 21, 2004 12:25 pm
by 9232649
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

Posted: Fri Sep 24, 2004 10:56 am
by Marjan
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.

Posted: Fri Sep 24, 2004 11:40 am
by 9232649
Hi,

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

Best Regards,

Johan Ingemansson