![]() | 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: | Marks' Clicked should have higher priority than Series' Clicked | ||
|---|---|---|---|
| Product: | VCL TeeChart | Reporter: | yeray alonso <yeray> |
| Component: | Chart | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | RESOLVED FIXED | ||
| Severity: | enhancement | ||
| Priority: | --- | ||
| Version: | 140512 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
Changed TCustomChart.CalcNeedClickedPart at Chart.pas to check the Marks before the Series. |
If you have the Marks over the series (as with a TPieSeries) and you use Series Clicked event with CalcClickedPart function to know what part of the chart was clicked, when you click on a Mark you still get the Series as the clicked object: procedure TForm1.Chart1Click(Sender: TObject); var curPoint: TPoint; clickedPart: TChartClickedPart; aSeries: TChartSeries; tmpString: string; begin curPoint := Chart1.GetCursorPos; TCustomChart(Chart1).CalcClickedPart(curPoint, clickedPart); aSeries := clickedPart.aSeries; tmpString := ''; case clickedPart.Part of cpSeries: tmpString := Format('Series %d, Point %d was clicked.',[aSeries.SeriesIndex, clickedPart.PointIndex]); cpSeriesMarks: tmpString := Format('Mark %d of series %d was clicked.', [clickedPart.PointIndex, aSeries.SeriesIndex]); end; caption := tmpString; end;