The Tutorial at
http://wiki.freepascal.org/TAChart_Tutorial:_Chart_Toolsprocedure TForm1.ChartToolset1DataPointClickTool1PointClick(
ATool: TChartTool; APoint: TPoint);
var
x, y: Double;
begin
with ATool as TDatapointClickTool do
if (Series <> nil) then
with (Series as TLineSeries) do begin
x := GetXValue(PointIndex);
y := GetYValue(PointIndex);
{ --- next line removed --- }
// Statusbar1.SimpleText := Format('%s: x = %f, y = %f', [Title, x, y]);
{ --- next line added --- }
ListSource.SetText(PointIndex, Format('x = %f'#13#10'y = %f', [x,y]));
end;
end
does not compile under 1.0.8
There is no ListSource.SetText(). Was this tutorial written with an older version of the chart package or is this something added since the release of 1.0.8?
Using the 1.0.8 release is their a way of setting the text of a point after it has been added?