Hilighting pointrs on Tlineseries

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Thomas Klingler
Advanced
Posts: 103
Joined: Tue Mar 02, 2004 5:00 am
Location: Bad Wurzach
Contact:

Hilighting pointrs on Tlineseries

Post by Thomas Klingler » Sun Feb 20, 2005 5:08 pm

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.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Feb 21, 2005 9:30 am

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;
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Thomas Klingler
Advanced
Posts: 103
Joined: Tue Mar 02, 2004 5:00 am
Location: Bad Wurzach
Contact:

Post by Thomas Klingler » Mon Feb 21, 2005 6:12 pm

Thanks Narcís, just the trick,
cheers
Sean

Post Reply