Hi,
Since i've upgrade my RAD from D2009 to XE10.1 and Teechart from 8.08 to 2017.10, DrawText function (from winapi unit) no longer use canvas settings as font color, size, etc...
Same function on TImage canvas works fine!
Please find attached small project highlighting problem.
I use Delphi XE10.1 and TeeChart Pro VCL FMX Source Code 2017.20.
Thanks for your help
Anthony
Winapi DrawText on chart no longer use canvas settings
Winapi DrawText on chart no longer use canvas settings
- Attachments
-
- TestTChartLDrawText - XE10.1.zip
- (25.96 KiB) Downloaded 1263 times
Re: Winapi DrawText on chart no longer use canvas settings
Hello Anthony,
It works as always if you switch back from GDIPlus to GDI:
It works as always if you switch back from GDIPlus to GDI:
Code: Select all
uses TeCanvas;
//...
Chart.Canvas:=TTeeCanvas3D.Create;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Winapi DrawText on chart no longer use canvas settings
Ok thank, it works finein GDI mode!
Is it planned to fix problem in GDIPlus?
Anthony
Is it planned to fix problem in GDIPlus?
Anthony
Re: Winapi DrawText on chart no longer use canvas settings
Hello Anthony,
We don't have this listed to modify for GDI+. There is the alternative approach using TeeChart's own TextOut.
eg.
You'd need to add some code to divide up your lines at the spaces.
Regards,
Marc Meumann
We don't have this listed to modify for GDI+. There is the alternative approach using TeeChart's own TextOut.
eg.
Code: Select all
Chart.Canvas.Font.Color := clred;
Chart.Canvas.Font.Size := 15;
Chart.Canvas.TextOut(r.Left,r.Top,str);
Regards,
Marc Meumann
Steema Support
Re: Winapi DrawText on chart no longer use canvas settings
Hello anyone,
Back to this problem.
The use of DrawText being much more powerful than the use of TextOut, isn't the correction of this regression planned yet ?
Back to this problem.
The use of DrawText being much more powerful than the use of TextOut, isn't the correction of this regression planned yet ?
Re: Winapi DrawText on chart no longer use canvas settings
Hello,
When using GDI+, TeeChart uses the GDI+ DrawString method internally.
Regards,
Marc Meumann
When using GDI+, TeeChart uses the GDI+ DrawString method internally.
Regards,
Marc Meumann
Steema Support