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

Summary: Clicked method not working with TriSurface
Product: VCL TeeChart Reporter: narcís calvet <narcis>
Component: SeriesAssignee: Steema Issue Manager <issuemanager>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: http://www.teechart.net/support/viewtopic.php?f=1&t=15679&sid=7dab66ecbcec3c0dd49e7466c8a5c709#p69615
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

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;