This works:
Code: Select all
procedure TFForm.ChartTool1GetText(Sender: TMarksTipTool; var Text: string);
begin
Text := 'Something';
end;
But if I try to locate the record in question, nothing is displayed, not even a hard coded text.
Code: Select all
procedure TFForm.ChartTool1GetText(Sender: TMarksTipTool; var Text: string);
begin
VinnuTafla.Locate('Faersla', Text, []);
Text := 'Something';
end;
What I thought would work was something like this - I have set the Text to get the Record Id, which I have verified that works correctly.
Code: Select all
procedure TFForm.ChartTool1GetText(Sender: TMarksTipTool; var Text: string);
begin
if VinnuTafla.Locate('Faersla', Text, []) then
Text := VinnuTaflaSvaedi.AsString
else Text := '[not found]';
end;