Change In Font Height Changes Font Color for TDChart
Posted: Thu Oct 10, 2013 5:04 pm
I am using Delphi XE2 (RAD Studio) with Update 4 HotFix 1. I have just upgraded to the latest TeeChart 9.0.8.0, with source, and had to do a recompile to install into XE2.
Prior to the upgrade everything was working fine. After the upgrade I saw odd behavior in my code being executed in the OnAfterDraw event handler for TDCharts. Specifically in the following code nothing would be displayed for the second TextOut. Remove the change in font height line and both lines display.
Chart.Canvas.TextOut(130, 100, 'Before Font Height Change');
Chart.Canvas.Font.Height := 15;
Chart.Canvas.TextOut(130, 110, 'After Font Height Change'); // NOT DISPLAYED WHEN ABOVE FONT HEIGHT LINE PRESENT
Further more inserting the following line after the Font Height change had no effect.
Chart.Canvas.Font.Color := clBlack;
I have attached a simple project displaying the issue.
Your help/insight would be appreciated.
Prior to the upgrade everything was working fine. After the upgrade I saw odd behavior in my code being executed in the OnAfterDraw event handler for TDCharts. Specifically in the following code nothing would be displayed for the second TextOut. Remove the change in font height line and both lines display.
Chart.Canvas.TextOut(130, 100, 'Before Font Height Change');
Chart.Canvas.Font.Height := 15;
Chart.Canvas.TextOut(130, 110, 'After Font Height Change'); // NOT DISPLAYED WHEN ABOVE FONT HEIGHT LINE PRESENT
Further more inserting the following line after the Font Height change had no effect.
Chart.Canvas.Font.Color := clBlack;
I have attached a simple project displaying the issue.
Your help/insight would be appreciated.