DPI Scaling Problems with Teechart AV

TeeChart for ActiveX, COM and ASP
Post Reply
Bluefin
Newbie
Newbie
Posts: 7
Joined: Mon Mar 06, 2017 12:00 am

DPI Scaling Problems with Teechart AV

Post by Bluefin » Wed Jan 05, 2022 3:03 am

I'm experiencing a very pesky problem that appears related to the many postings about changing the Display scaling. While others have discussed problems with an enlarged display scaling, say 125%-150% and it's effect on exported graphs, in my case when I open an Access database, the graph is smaller on the form when opened on a x64 version of Access using the x64 version of the Teechart ActiveX. The behavior does not occur on a x86 version of the ActiveX.

I need to find a solution as it is not acceptable to clients that this occurs because not only are printed graphs smaller, but the graphs displayed on the screen are also smaller. Is there a switch or design change that avoids this problem?
Last edited by Bluefin on Fri Jan 07, 2022 2:33 am, edited 1 time in total.

Bluefin
Newbie
Newbie
Posts: 7
Joined: Mon Mar 06, 2017 12:00 am

Re: DPI Scaling Problems with x64 Teechart AV

Post by Bluefin » Wed Jan 05, 2022 4:59 pm

To clarify, the display resolution has no negative effect, only scaling above 100%. The Teechart202164.ocx does not appear to be DPI aware yet the Teechart2021.ocx is.

Bluefin
Newbie
Newbie
Posts: 7
Joined: Mon Mar 06, 2017 12:00 am

Re: DPI Scaling Problems with x64 Teechart AV

Post by Bluefin » Thu Jan 06, 2022 7:50 pm

I have confirmed the problem is beyond the x64 version. Both the x86 and x64 versions of Teechart AV are equally affected. Apparently Teechart is not dpi aware and may explain all the problems with exported charts being too small in certain situations. If you increase scaling to say 125%, reboot the machine and open a form with a Teechart object, the chart width and height do not size with the rest of the form. When the form is opened at run-time, the chart is too small. Would be nice if Steema could shed some light on this. The only solution I see is to adjust the width and height at runtime by getting the scale factor and adjusting with the OnLoad event. Something like this (given a 1.25 scale factor):

Code: Select all

With tchart
      .width=.width*1.25
      .height=.height*1.25
End With
If there is some teechart option to address this problem that I'm not seeing, I would appreciate the suggestion.

Yeray
Site Admin
Site Admin
Posts: 9622
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: DPI Scaling Problems with x64 Teechart AV

Post by Yeray » Thu Jan 06, 2022 10:43 pm

Hello,

We may need to send you some test ocx so we can check if the latest fixes we did for the VCL solve the issues you are observing.
Let me check with my colleagues and we'll be back to you here.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Yeray
Site Admin
Site Admin
Posts: 9622
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: DPI Scaling Problems with x64 Teechart AV

Post by Yeray » Thu Jan 06, 2022 11:18 pm

Hello,

I've sent you a mail with a test ocx. I hope it works better for you.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Bluefin
Newbie
Newbie
Posts: 7
Joined: Mon Mar 06, 2017 12:00 am

Re: DPI Scaling Problems with Teechart AV

Post by Bluefin » Fri Jan 07, 2022 2:36 am

Email not received yet, but look forward to testing a possible solution. My workaround is working, so that is my alternative if the new ocx does not fix the problem.

Yeray
Site Admin
Site Admin
Posts: 9622
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: DPI Scaling Problems with Teechart AV

Post by Yeray » Tue Jan 18, 2022 10:31 am

Hello,

Just as a follow-up, note we are doing tests and the communication has been moved to mail.
We'll write here when we'll get some conclusion.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply