TChartPageNavigator and High DPI

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
wasowerby
Newbie
Newbie
Posts: 27
Joined: Thu May 14, 2020 12:00 am

TChartPageNavigator and High DPI

Post by wasowerby » Tue Jul 14, 2020 2:01 pm

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

wasowerby
Newbie
Newbie
Posts: 27
Joined: Thu May 14, 2020 12:00 am

Re: TChartPageNavigator and High DPI

Post by wasowerby » Sat Jul 18, 2020 8:07 am

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.

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

Re: TChartPageNavigator and High DPI

Post by Yeray » Mon Jul 20, 2020 5:11 am

I'm sorry for the delay here!
I'll give it a try asap
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: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: TChartPageNavigator and High DPI

Post by Yeray » Mon Jul 20, 2020 5:55 am

This is how it looks for me at 175%:
Project1_fgZcYKsvEC.png
Project1_fgZcYKsvEC.png (30.11 KiB) Viewed 35971 times

I've added it to the public tracker #2348
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

wasowerby
Newbie
Newbie
Posts: 27
Joined: Thu May 14, 2020 12:00 am

Re: TChartPageNavigator and High DPI

Post by wasowerby » Tue Jul 21, 2020 9:38 am

Thanks Yeray. If you look at the tiny page navigation buttons at the bottom and their large spacing, you will see what I mean.

wasowerby
Newbie
Newbie
Posts: 27
Joined: Thu May 14, 2020 12:00 am

Re: TChartPageNavigator and High DPI

Post by wasowerby » Tue Jul 21, 2020 10:04 am

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.
Attachments
TChartPageNavigator buttons.jpg
TChartPageNavigator buttons.jpg (102.09 KiB) Viewed 35905 times

wasowerby
Newbie
Newbie
Posts: 27
Joined: Thu May 14, 2020 12:00 am

Re: TChartPageNavigator and High DPI

Post by wasowerby » Tue Jul 21, 2020 10:14 am

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.

wasowerby
Newbie
Newbie
Posts: 27
Joined: Thu May 14, 2020 12:00 am

Re: TChartPageNavigator and High DPI

Post by wasowerby » Wed Jul 22, 2020 10:34 am

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?

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

Re: TChartPageNavigator and High DPI

Post by Yeray » Fri Jul 24, 2020 7:03 am

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
highDPIAxisTitle.png (22.84 KiB) Viewed 35858 times
Could you please arrange a simple example project we can run as-is to reproduce the problem here?
Thanks in advance.
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

wasowerby
Newbie
Newbie
Posts: 27
Joined: Thu May 14, 2020 12:00 am

Re: TChartPageNavigator and High DPI

Post by wasowerby » Tue Jul 28, 2020 10:20 am

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

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

Re: TChartPageNavigator and High DPI

Post by Yeray » Tue Jul 28, 2020 11:37 am

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.
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

wasowerby
Newbie
Newbie
Posts: 27
Joined: Thu May 14, 2020 12:00 am

Re: TChartPageNavigator and High DPI

Post by wasowerby » Thu Aug 06, 2020 4:39 pm

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
TChart_D2007.jpg (78.08 KiB) Viewed 35294 times

TChart_10.4.jpg
TChart_10.4.jpg (102.09 KiB) Viewed 35294 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.

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: TChartPageNavigator and High DPI

Post by Christopher » Fri Aug 07, 2020 8:29 am

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.
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

wasowerby
Newbie
Newbie
Posts: 27
Joined: Thu May 14, 2020 12:00 am

Re: TChartPageNavigator and High DPI

Post by wasowerby » Fri Aug 07, 2020 9:07 am

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
Last edited by wasowerby on Fri Aug 07, 2020 9:57 am, edited 1 time in total.

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: TChartPageNavigator and High DPI

Post by Christopher » Fri Aug 07, 2020 9:51 am

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.
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Post Reply