TeeChart 2013 and TChartAxis.OnDrawLabel event
Posted: 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
has to patched in the following way
I guess the source code in TeEngine.pas, line 5036
Code: Select all
if Assigned(FOnDrawLabel) then
FOnDrawLabel(Self,X,Y,tmpZ,tmpSt,tmpDraw);
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;