Hi,
I use Teechart V8.02. AT my Tchart I have added a TContourSeries and a TCursorTool assigned to that series.
With the event
ChartTool1Change(Sender: TCursorTool; x, y: Integer;
const XValue, YValue: Double; Series: TChartSeries; ValueIndex: Integer);
I want to show x,y and z value. XValue and YValue are provided with this event, but how can I get the Z-Value ?
ValueIndex is alwas -1.
The function (Series as TContourSeries).GetCursorValueIndex returns only the LevelIndex.
Locate returns also -1.
What can I do ?
Best regards
Werner
ZValue on TContourSeries
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Werner,
This is a bug (TV52012626) which I've added to our defect list to be fixed for future releases.
In the meantime you can use OnMouseMove event like this:
ValueIndex is alwas -1.
This is a bug (TV52012626) which I've added to our defect list to be fixed for future releases.
In the meantime you can use OnMouseMove event like this:
Code: Select all
procedure TForm1.Chart1MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
var index: Integer;
begin
index:=Series1.Clicked(X,Y);
if index<>-1 then
begin
Caption:=FloatToStr(Series1.XValues[index]) + ', ' +
FloatToStr(Series1.YValues[index]) + ', ' +
FloatToStr(Series1.ZValues[index]);
end;
end;
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 |
ZValue on TContourSeries
Hi Pep,
I use the TContourSeries wich 3D unchecked, so the view is 2D.
best regards
Werner
I use the TContourSeries wich 3D unchecked, so the view is 2D.
best regards
Werner