Page 1 of 1

Hilighting pointrs on Tlineseries

Posted: Sun Feb 20, 2005 5:08 pm
by 8443014
D6 with TChart 7, chart with about 20 Tlineseries, drawn as lines with distinct points. User can click on any point and pull up information about that point using the method below-

procedure TMainForm.series2Click(Sender: TChartSeries; ValueIndex: Integer;
Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
begin
//do something with valueindex here
Chart.CancelMouse:=True;
end;

What I need to be able to do is to highlight the selected point, it could take on another colour or it could become a different size to the other points in that series. Is there a way to do this please?

thanks
Sean.

Posted: Mon Feb 21, 2005 9:30 am
by narcis
Hi Sean,
What I need to be able to do is to highlight the selected point, it could take on another colour or it could become a different size to the other points in that series. Is there a way to do this please?
Yes, you can do the code line above to change the selected point color.

Code: Select all

Sender.ValueColor[ValueIndex]:=clBlue;

Posted: Mon Feb 21, 2005 6:12 pm
by 8443014
Thanks NarcĂ­s, just the trick,
cheers
Sean