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 936

Summary: Detection of the clicked part in a chart does not function well on a the title of a rotated axis
Product: VCL TeeChart Reporter: hans boot <hans.boot>
Component: AxisAssignee: Steema Issue Manager <issuemanager>
Status: IN_PROGRESS ---    
Severity: major CC: david, sandra
Priority: ---    
Version: 140512   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description hans boot 2014-09-29 11:29:24 EDT
Function affected: in file Chart.pas

Function TCustomChart.CalcNeedClickedPart(Pos:TPoint; Needed:Boolean):TChartClickedPart;

Reason: the TChartAxisTitle has a private field fAngle. This class is derived from TTeeCustomShape which also has a private field fAngle. In checking if the title area is clicked, the angle of the underling shape is checked which is NOT the angle of the axis title object: the axis title is not detected as ‘clicked on’.

Possible fix:

In TeeProcs.pas make the fAngle field of the class TTeeCustomShape: protected so the TChartAxisTitle class can use it.
In TeEngine.pas remove the private fAngle field of the TChartAxisTitle class so the inherited field is used.

This was working correctly in version 2010, in current version 2014 (as of version 2013 ?) this appeared to lead to a non detected axis title click
Comment 1 david berneda 2014-10-13 13:22:53 EDT
Work to fix this problem has been done in this direction. Also rotated axis titles now support TextFormat := ttfHTML.

Pending to detect correctly rotation angles different than 90,180 and 270 degrees.