Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 1262 - Clicked method not working with TriSurface
Summary: Clicked method not working with TriSurface
Status: CONFIRMED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: unspecified
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-31 07:35 EDT by narcís calvet
Modified: 2015-07-31 07:35 EDT (History)
0 users

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description narcís calvet 2015-07-31 07:35:34 EDT
Clicked method doesn't work correctly with TriSurface series. Code to reproduce:

procedure TForm1.FormCreate(Sender: TObject);
var i, j: Integer;
begin
  for i:=0 to 10 do
    for j:=0 to 10 do
      Series1.AddXYZ(i, i*j, j);
end;

procedure TForm1.Chart1MouseMove(Sender: TObject; Shift: TShiftState; X,
  Y: Integer);
var index : Integer;
begin
  index:=Series1.Clicked(X,Y);

  Chart1.Title.Text[0]:=IntToStr(index);

  if index <> -1 then
    Caption:='X: ' + FloatToStr(Series1.XValues[Index]) +
              ' Y: ' + FloatToStr(Series1.YValues[Index]) +
              ' Z: ' + FloatToStr(Series1.ZValues[Index]);
end;