hi,
what's the best way to ask marktip show (x z y) values for TColorGridSeries, I mean, what's the easiest way to just add z value to the ongettext function? thanks.
Fang
Marktip tool doesn't show z value for colorgrid series
Marktip tool doesn't show z value for colorgrid series
Last edited by Fang on Sat Apr 01, 2006 9:42 pm, edited 1 time in total.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Fang,
You can get the series point index using chart's OnMouseMove event and series' clicked method as done here:what's the best way to ask marktip show (x z y) values for TColorGridSeries, I mean, what's the easiest way to just add z value to the ongettext function?
Code: Select all
var
Form1: TForm1;
Index: Integer;
implementation
{$R *.dfm}
procedure TForm1.ChartTool1GetText(Sender: TMarksTipTool;
var Text: String);
begin
Text:=FloatToStr(Series1.XValue[Index])+', '+
FloatToStr(Series1.YValue[Index])+', '+
FloatToStr(Series1.ZValue[Index]);
end;
procedure TForm1.Chart1MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
begin
Index:=Series1.Clicked(X,Y);
end;
It works fine here using our current sources so you may expect it to work for the next maintenance release.it looks like the delay time msec for TMarkTipTool only works for click event instead of move event , is that what supposed to be?
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 |