Page 1 of 1

Marktip tool doesn't show z value for colorgrid series

Posted: Sat Apr 01, 2006 9:33 pm
by 9234539
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

Posted: Sat Apr 01, 2006 9:41 pm
by 9234539
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.

Posted: Mon Apr 03, 2006 9:04 am
by narcis
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.