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 - Detection of the clicked part in a chart does not function well on a the title of a rotated axis
Summary: Detection of the clicked part in a chart does not function well on a the titl...
Status: IN_PROGRESS
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Axis (show other bugs)
Version: 140512
Hardware: PC Windows
: --- major
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-29 11:29 EDT by hans boot
Modified: 2014-10-13 13:22 EDT (History)
2 users (show)

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 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.