Page 1 of 1

DPI Scaling Problems with Teechart AV

Posted: Wed Jan 05, 2022 3:03 am
by 16680282
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?

Re: DPI Scaling Problems with x64 Teechart AV

Posted: Wed Jan 05, 2022 4:59 pm
by 16680282
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.

Re: DPI Scaling Problems with x64 Teechart AV

Posted: Thu Jan 06, 2022 7:50 pm
by 16680282
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.

Re: DPI Scaling Problems with x64 Teechart AV

Posted: Thu Jan 06, 2022 10:43 pm
by yeray
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.

Re: DPI Scaling Problems with x64 Teechart AV

Posted: Thu Jan 06, 2022 11:18 pm
by yeray
Hello,

I've sent you a mail with a test ocx. I hope it works better for you.

Re: DPI Scaling Problems with Teechart AV

Posted: Fri Jan 07, 2022 2:36 am
by 16680282
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.

Re: DPI Scaling Problems with Teechart AV

Posted: Tue Jan 18, 2022 10:31 am
by yeray
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.