Page 1 of 2
TChartPageNavigator and High DPI
Posted: Tue Jul 14, 2020 2:01 pm
by 16588751
When scaling up my display to 175% for High DPI testing, I notice that the TChartPageNavigator buttons are not scaling up at all; they remain the same size as at a 100% scaling factor. I'm using Delphi Rio 10.3.3 with W10 Pro and the latest TeeChartVCLFMXSOURCE-2020.30 update. Is there any way of using the TChartPageNavigator with a TVirtualImageList to correct this problem? Or do you intend to fix the problem?
Andrew
Re: TChartPageNavigator and High DPI
Posted: Sat Jul 18, 2020 8:07 am
by 16588751
You seem to have answered all other recent messages except for mine! Anyway, since the TChartPageNavigator is not currently usable going forward in a high DPI marketplace, I have developed my own navigator which uses a TVirtualImageList to handle high DPI displays. So, don't worry about replying to this issue.
Re: TChartPageNavigator and High DPI
Posted: Mon Jul 20, 2020 5:11 am
by yeray
I'm sorry for the delay here!
I'll give it a try asap
Re: TChartPageNavigator and High DPI
Posted: Mon Jul 20, 2020 5:55 am
by yeray
This is how it looks for me at 175%:
- Project1_fgZcYKsvEC.png (30.11 KiB) Viewed 36008 times
I've added it to the public tracker
#2348
Re: TChartPageNavigator and High DPI
Posted: Tue Jul 21, 2020 9:38 am
by 16588751
Thanks Yeray. If you look at the tiny page navigation buttons at the bottom and their large spacing, you will see what I mean.
Re: TChartPageNavigator and High DPI
Posted: Tue Jul 21, 2020 10:04 am
by 16588751
This is what I expect to see at 175% - with my Page navigator code. Also, I've just noticed that the left and bottom legends overlap with the values. Not sure if that is a TChart problem or something I can fix.
Re: TChartPageNavigator and High DPI
Posted: Tue Jul 21, 2020 10:14 am
by 16588751
Also, I've just noticed that the left and bottom legends overlap with the values. Not sure if that is a TChart problem or something I can fix.
I mean the LH and Bottom titles overlap.
Re: TChartPageNavigator and High DPI
Posted: Wed Jul 22, 2020 10:34 am
by 16588751
It looks as though TChart doesn't scale up properly with the axis titles not adjusting the distance between them and the axis labels as shown in my image above. Can you suggest a workaround or will it need a fix?
Re: TChartPageNavigator and High DPI
Posted: Fri Jul 24, 2020 7:03 am
by yeray
Hello,
It seems to work fine for me (the image is in 2D but I've also tried in 3D, in Rio and Sydney):
- highDPIAxisTitle.png (22.84 KiB) Viewed 35895 times
Could you please arrange a simple example project we can run as-is to reproduce the problem here?
Thanks in advance.
Re: TChartPageNavigator and High DPI
Posted: Tue Jul 28, 2020 10:20 am
by 16588751
It would take considerable effort (including providing a NexusDB database!) to provide even a simple example project, so I cannot do that at the moment I'm afraid. If you cannot reproduce this particular issue, then I guess there must be an issue with my app. I'll revisit the issue and let you know if I can solve it.
Thanks
Re: TChartPageNavigator and High DPI
Posted: Tue Jul 28, 2020 11:37 am
by yeray
Hello,
I think the database has probably nothing to do with the problem you are observing.
You could try to replicate the problem with manually entered data and, if you can reproduce the problem, you could export the chart to a tee file and send it to us so we can try to import it here.
Re: TChartPageNavigator and High DPI
Posted: Thu Aug 06, 2020 4:39 pm
by 16588751
Not making any progress with this. Comparing the app compiled in D2007 and 10.4 Sydney in W10 Pro at a display scaling of 175% (with different data) you see:
- TChart_D2007.jpg (78.08 KiB) Viewed 35331 times
- TChart_10.4.jpg (102.09 KiB) Viewed 35331 times
The units generating both images are
identical - just different compilers. As you can see, no scaling in the D2007 image but huge scaling in the 10.4 one. Look at the size of the font in it! As I have said, there seem to be similarities with Issue: 'Display settings and font size'. BTW, I am using my own navigator buttons in the 10.4 image which scale correctly; yours don't.
Re: TChartPageNavigator and High DPI
Posted: Fri Aug 07, 2020 8:29 am
by Christopher
Hello,
Code: Select all
As I have said, there seem to be similarities with Issue: 'Display settings and font size'. BTW, I am using my own navigator buttons in the 10.4 image which scale correctly; yours don't.
How about repeating the exercise we did in in the 'Display settings and font size' thread? If you could zip up the two *.exes which give you different results I can run them here to confirm the problem.
Re: TChartPageNavigator and High DPI
Posted: Fri Aug 07, 2020 9:07 am
by 16588751
Hi Christopher,
Well, there is a problem somewhere with my code or yours in 10.4, as my images show. I cannot just send you exes; you would have to fully install both versions with their configuration, Help files etc. - which is just not practicable I'm afraid. I will have to produce 2 demo exe-only programs which will take some time. I suggest we wait and see if a fix for the 'Display settings and font size' fixes my problem too - assuming it's not a 10.4 problem. If not, I will produce demo exe's to progress this issue.
Andrew
Re: TChartPageNavigator and High DPI
Posted: Fri Aug 07, 2020 9:51 am
by Christopher
Hello Andrew,
wasowerby wrote: ↑Fri Aug 07, 2020 9:07 am
Do you have Sydney 10.4?
No, I'm afraid I don't, as my spec in Steema is more on the .NET side of things. I only have Delphi 10.2.3 installed, and as in the other thread I believe this DPI problem doesn't exist in this version - I've documented this issue in our issue tracker with
id=2364.
As you say, we may now be talking about the same issue - that is, identical TeeChart code (and version) in (say) Delphi 10.2.3 works fine at high DPI (or Text size), whereas it doesn't in Delphi 10.4. I've still not been able to run a Delphi 10.4 compiled app which displays the problem, and here you may be able to help me - if you could, you might like to compile the test app
here in Delphi 10.4 and send me a link with the zipped exe so I can see the difference.