TeeChart 2013 and TChartAxis.OnDrawLabel event

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Collinor
Newbie
Newbie
Posts: 3
Joined: Wed Oct 19, 2011 12:00 am

TeeChart 2013 and TChartAxis.OnDrawLabel event

Post by Collinor » Tue Feb 04, 2014 9:29 am

In TeeChart 2013, the 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

Code: Select all

  if Assigned(FOnDrawLabel) then
     FOnDrawLabel(Self,X,Y,tmpZ,tmpSt,tmpDraw);
has to patched in the following way

Code: Select all

  if Assigned(FOnDrawLabel) then
  begin
    tmpSt:=Format.Text;
    FOnDrawLabel(Self,X,Y,tmpZ,tmpSt,tmpDraw);
    if tmpDraw then
      Format.Text := tmpSt;
  end;

Yeray
Site Admin
Site Admin
Posts: 9548
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: TeeChart 2013 and TChartAxis.OnDrawLabel event

Post by Yeray » Fri Feb 07, 2014 11:39 am

Hi Collinor,

Sounds quite logical. I've added to the bug tracking system.
http://bugs.teechart.net/show_bug.cgi?id=564
Feel free to add your mail to the CC to follow the status of the ticket.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply