custom drawing disappears after a few milliseconds
Posted: Tue Sep 01, 2009 4:23 pm
just after completing the a graph by setting the different values of a TBar3DSeries i want to draw a horizontal line as follows.
MyTeeChart->Canvas->MoveTo(0,MyTeeChart->LeftAxis->CalcYPosValue(0));
MyTeeChart->Canvas->LineTo(500,MyTeeChart->LeftAxis->CalcYPosValue(0));
unfortunately, the line dissapears immediately after a few milliseconds. does anybody know why ????
when placing the lines into an event like OnBeforeDrawSeries or OnAfterDraw the line stays but i can't use them for the following reasons:
beforedraw: at this point i do not yet know the position of the YPosValue(0) so i need to know after the series is complete
afterdraw: i would like to have the line behind the seriesbars, so afterdraw would be too late
thanks for some hints
uwe
MyTeeChart->Canvas->MoveTo(0,MyTeeChart->LeftAxis->CalcYPosValue(0));
MyTeeChart->Canvas->LineTo(500,MyTeeChart->LeftAxis->CalcYPosValue(0));
unfortunately, the line dissapears immediately after a few milliseconds. does anybody know why ????
when placing the lines into an event like OnBeforeDrawSeries or OnAfterDraw the line stays but i can't use them for the following reasons:
beforedraw: at this point i do not yet know the position of the YPosValue(0) so i need to know after the series is complete
afterdraw: i would like to have the line behind the seriesbars, so afterdraw would be too late
thanks for some hints
uwe