Page 1 of 1

TeeChart 2013 and TChartAxis.OnDrawLabel event

Posted: Tue Feb 04, 2014 9:29 am
by 16560497
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;

Re: TeeChart 2013 and TChartAxis.OnDrawLabel event

Posted: Fri Feb 07, 2014 11:39 am
by yeray
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.