![]() | Steema Issues DatabaseNote: 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. |
| 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: | Axis | Assignee: | 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: | |
Yes, you're right ! Fixed. |
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;