Marktip tool doesn't show z value for colorgrid series

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Fang
Newbie
Newbie
Posts: 66
Joined: Wed Oct 13, 2004 4:00 am

Marktip tool doesn't show z value for colorgrid series

Post by Fang » Sat Apr 01, 2006 9:33 pm

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
Last edited by Fang on Sat Apr 01, 2006 9:42 pm, edited 1 time in total.

Fang
Newbie
Newbie
Posts: 66
Joined: Wed Oct 13, 2004 4:00 am

Post by Fang » Sat Apr 01, 2006 9:41 pm

and one more question,

it looks like the delay time msec for TMarkTipTool only works for click event instead of move event , is that what supposed to be?

it'll be greate if there's one for move.

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 Apr 03, 2006 9:04 am

Hi Fang,
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?
You can get the series point index using chart's OnMouseMove event and series' clicked method as done here:

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 looks like the delay time msec for TMarkTipTool only works for click event instead of move event , is that what supposed to be?
It works fine here using our current sources so you may expect it to work for the next maintenance release.
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

Post Reply