![]() | Steema Issues DatabaseNote: 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. |
| Summary: | Clicked function returns wrong when CalcVisiblePoints is set to false | ||
|---|---|---|---|
| Product: | VCL TeeChart | Reporter: | yeray alonso <yeray> |
| Component: | Series | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | --- | ||
| Version: | 24.180321 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| URL: | https://stackoverflow.com/questions/52105993/teechart-solving-calcclickedpart-bug-due-to-calcvisiblepoints-false | ||
| Chart Series: | Line | Delphi / C++ Builder RAD IDE Version: | |
Having CalcVisiblePoints set to false, the Clicked function still returns point indexes when the mouse is over a point out of the ChartRect. Both with the example from the customer and with the following examples, scroll the chart a bit and move the mouse over those points that have disappeared out of the ChartRect. uses Series; procedure TForm1.FormCreate(Sender: TObject); var i: Integer; begin Chart1.View3D:=False; Chart1.Legend.LegendStyle:=lsSeries; with Chart1.AddSeries(TLineSeries) do begin CalcVisiblePoints:=False; for i:=0 to 9 do Add(10); end; end; Also reproduced with the "Axis_OpaqueZones" example, adding this to the FormCreate: Chart1.Legend.Show; for i:=0 to Chart1.SeriesCount-1 do Chart1[i].CalcVisiblePoints:=false;