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.
Hilighting pointrs on Tlineseries
-
- Advanced
- Posts: 103
- Joined: Tue Mar 02, 2004 5:00 am
- Location: Bad Wurzach
- Contact:
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Sean,
Yes, you can do the code line above to change the selected point color.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?
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 |
Instructions - How to post in this forum |
-
- Advanced
- Posts: 103
- Joined: Tue Mar 02, 2004 5:00 am
- Location: Bad Wurzach
- Contact: