TlineSeries.OnGetPointerStyle

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
seanmurphy
Newbie
Newbie
Posts: 48
Joined: Fri Mar 12, 2004 5:00 am

TlineSeries.OnGetPointerStyle

Post by seanmurphy » Fri Jul 28, 2006 8:51 am

D6 Teechart 7.06
I've a Teechart on which I create several hundred Tlineseries at run time, each X,Y point on each lineseries is used to draw the value of an attribute, color coded according to the value. I'm using the ongetpointerstyle event to determine the color to draw the point with
valuecolor[valueindex]:=newcolour.
This all works as expected, except when the chart is first drawn the point (series) are all drawn with the seriescolor of the series (I set this at run time when series are created). If the user does any interaction with the chart, say to zoom or to right-click the chat and move the drawing a bit, then the ongetpointerstlyle event gets fired and the points take on different colours.

CAn anyone tell me how to get the ongetpointerstyle to fire the first time the series are drawn please. (I've tried series.refresh after completing the addxy for each series), have tried chart.refresh after addding all x,y for all series.

thanks
Sean[/url]

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Jul 28, 2006 9:03 am

Hi Sean,

Try using:

Code: Select all

    Chart1.Draw;
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply