I have this code in the onHint-Event
var ser: TOpenHighLowCloseSeries;
ser_Vol: TLineSeries;
ser_Oi: TBarSeries;
punkt: Integer;
o, h, l, c: double;
s: String;
d: double;
dat: TDate;
....
with TDatapointHintTool(ATool) do begin /
ser := ATool.Series as TOpenHighLowCloseSeries; // works fine
//these 2 give me "invalid typ cast"
ser_Vol := ATool.Series as TLineSeries;
ser_oi := ATool.Series as TBarSeries;
punkt := PointIndex;
end;
.............
So of 3 types, the first one works fine.
The others show "invalid type cast" or give me an protection error on mouse over.
Not sure, the thing changes.
Yes, the mistake can be elsewhere.
To my mind it is in those construction above.
If yes, does anybody have the clou "what"?
If you ask, if I see the 2 problem series on my chart - no.
This would suggest, that the error is somewhere else.
But how to search for it?
I have the illusion, that I did everything the same as in all other TCharts.
And the illusion, that I did the with the 2 series the same as with the first, the working one.
:'(