Page 1 of 1

TlineSeries.OnGetPointerStyle

Posted: Fri Jul 28, 2006 8:51 am
by 9231397
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]

Posted: Fri Jul 28, 2006 9:03 am
by narcis
Hi Sean,

Try using:

Code: Select all

    Chart1.Draw;