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 564

Summary: TChartAxis.OnDrawLabel event handler is not called with the actual label value and the label value returned by the OnDrawLabel event handler is ignored.
Product: VCL TeeChart Reporter: yeray alonso <yeray>
Component: AxisAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: normal CC: david
Priority: ---    
Version: 131119   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: http://www.teechart.net/support/viewtopic.php?f=3&t=14650
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description yeray alonso 2014-02-07 06:38:56 EST
TChartAxis.OnDrawLabel event handler is not called with the actual label value and the label value returned by the OnDrawLabel event handler is ignored.

I guess the source code in TeEngine.pas, line 5036:

  if Assigned(FOnDrawLabel) then
     FOnDrawLabel(Self,X,Y,tmpZ,tmpSt,tmpDraw);

Has to patched in the following way:

  if Assigned(FOnDrawLabel) then
  begin
    tmpSt:=Format.Text;
    FOnDrawLabel(Self,X,Y,tmpZ,tmpSt,tmpDraw);
    if tmpDraw then
      Format.Text := tmpSt;
  end;
Comment 1 david berneda 2014-02-14 13:28:22 EST
Yes, you're right ! Fixed.