Show/Hide Series checkboxes too big
Show/Hide Series checkboxes too big
Hello, we recently updated TChart sources from V2021.33 to V2022.35
and we are using Delphi 10.4, compiling for Win 64Bit.
There we noticed that suddenly all the checkboxes to show/hide series
are far too big, as soon as the Display Scaling is bigger than 100%.
The attached screenshot is for a Scaling of 150%:
Partially (for other charts) the Checkboxes get bigger than the whole chart.
Is there a fix available for this bug?
and we are using Delphi 10.4, compiling for Win 64Bit.
There we noticed that suddenly all the checkboxes to show/hide series
are far too big, as soon as the Display Scaling is bigger than 100%.
The attached screenshot is for a Scaling of 150%:
Partially (for other charts) the Checkboxes get bigger than the whole chart.
Is there a fix available for this bug?
Re: Show/Hide Series checkboxes too big
Hello TChart Team,
This is really an annoying bug, with higher display scaling the Checkboxs and with that the legend tends to vanish completely.
Can you reproduce this problem at least, or can I help with that?
Something concerning Checkboxes seems to have changed in the recent release(s) but obviously, this change introduced a buggy behavior. At least with the Delphi version we are using. The current release of TChart is not usable for us.
This is really an annoying bug, with higher display scaling the Checkboxs and with that the legend tends to vanish completely.
Can you reproduce this problem at least, or can I help with that?
Something concerning Checkboxes seems to have changed in the recent release(s) but obviously, this change introduced a buggy behavior. At least with the Delphi version we are using. The current release of TChart is not usable for us.
Re: Show/Hide Series checkboxes too big
Hi, i had the same problem.
In my situation i've changed 'scale' property in TeeGDIPlus component connected to Chart to 2, then back to value 1 and checkboxes are scaled properly. Don't ask my why and how this resolve the problem. Maybe i also recompiled my project after scale changed to 2 and second time after back to 1.
In my situation i've changed 'scale' property in TeeGDIPlus component connected to Chart to 2, then back to value 1 and checkboxes are scaled properly. Don't ask my why and how this resolve the problem. Maybe i also recompiled my project after scale changed to 2 and second time after back to 1.
Re: Show/Hide Series checkboxes too big
Thanks for reporting it.
We are investigating what happened and we'll be back here asap.
We are investigating what happened and we'll be back here asap.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Show/Hide Series checkboxes too big
Hello Lukasz, thank you for your tip, but we have many Charts in our Sofware. Going through all these Charts and changing the Scale property of all TeeGDIPlus components, doesn't seem to be a viable/real solution.
I wonder if we could simply replace the current scaling again with the working scaling, from the older TChart code?
I wonder if we could simply replace the current scaling again with the working scaling, from the older TChart code?
Re: Show/Hide Series checkboxes too big
Hello,
I have two monitors, one at 100% and the other at 175%. I'm running the following test application: Starting the application at the 100% monitor and dragging it to the 175% monitor everything seems to be correctly resized: Starting the application at the 175% monitor, fonts and checkboxes are a bit smaller than the standard components: Could you please check how that test application works for you and modify it to reproduce the problem here if necessary?
I have two monitors, one at 100% and the other at 175%. I'm running the following test application: Starting the application at the 100% monitor and dragging it to the 175% monitor everything seems to be correctly resized: Starting the application at the 175% monitor, fonts and checkboxes are a bit smaller than the standard components: Could you please check how that test application works for you and modify it to reproduce the problem here if necessary?
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Show/Hide Series checkboxes too big
Hello Yeray,
I modified the example, when you press the "Create Chart and data" button (multiple times), just the Checkboxes keep growing. Everything else keeps roughly the correct size.
I also attached the modified project.
Thanks and best regards,
Thomas
I modified the example, when you press the "Create Chart and data" button (multiple times), just the Checkboxes keep growing. Everything else keeps roughly the correct size.
I also attached the modified project.
Thanks and best regards,
Thomas
- Attachments
-
- HighDPI_RAD10.4_Modified.zip
- (24.78 KiB) Downloaded 1017 times
Re: Show/Hide Series checkboxes too big
Hello,
Since you own the sources, I've sent a fix proposal to the mail account you have registered in these forums.
Extract the contents of the zip in your sources folder (backup it first) and rebuild TeeChart packages with TeeRecompile.
Please, tell us how it works at your side.
Since you own the sources, I've sent a fix proposal to the mail account you have registered in these forums.
Extract the contents of the zip in your sources folder (backup it first) and rebuild TeeChart packages with TeeRecompile.
Please, tell us how it works at your side.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Show/Hide Series checkboxes too big
Hello Yeray,
Great, I can confirm that your changes fixed this nasty bug, congrats !
Are these changes final?
I can see that certain properties are no more available, like "VCLTee.TeCanvas.TeeCheckBoxSize"
or "VCLTee.TeCanvas.TeeDrawCheckBox"
Best regards,
Thomas
Great, I can confirm that your changes fixed this nasty bug, congrats !
Are these changes final?
I can see that certain properties are no more available, like "VCLTee.TeCanvas.TeeCheckBoxSize"
or "VCLTee.TeCanvas.TeeDrawCheckBox"
Best regards,
Thomas
Re: Show/Hide Series checkboxes too big
Hello Thomas,
Thanks for confirming the proposal works for you.
The changes are one merge ahead of being final, pending for a revision.
If you have any doubt or worry, don't hesitate to let us know.
I'll check if
Thanks for confirming the proposal works for you.
The changes are one merge ahead of being final, pending for a revision.
If you have any doubt or worry, don't hesitate to let us know.
I'll check if
TeeCheckBoxSize
and TeeDrawCheckBox
still make sense.Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Show/Hide Series checkboxes too big
Hello,
This is the same way we already do for text sizes (and also for pen widths in this branch).
And regarding
In this merge request,
TeeCheckBoxSize
variable is substituted for a TeeDefaultCheckBoxSize
const and a TChart
's Aspect.CheckBoxZoom
property which are used to calculate the final checkbox size like this:
Code: Select all
function TTeeCanvas.GetCheckBoxSize:Integer;
begin
Result:=TeeDefaultCheckBoxSize;
if (CheckBoxZoom<>100) then
Result:=Round({$IFDEF FMX}Max(1,TeeDefaultCheckBoxSize*CheckBoxZoom*0.01){$ELSE}TeeDefaultCheckBoxSize*CheckBoxZoom*0.01{$ENDIF});
end;
And regarding
TeeDrawCheckBox
method, we only added an extra parameter to it (CheckBoxSize:Integer=TeeDefaultCheckBoxSize
) so the method should still be accessible. Isn't it accessible for you?Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Show/Hide Series checkboxes too big
Hello Yeray,
Thanks for the info, I will have a look at this when I am back in the Office, in about two weeks.
Best regards,
Thomas
Thanks for the info, I will have a look at this when I am back in the Office, in about two weeks.
Best regards,
Thomas
Re: Show/Hide Series checkboxes too big
Hello,
We still have more or lesss the same issue as in the original post. We have recently upgraded an older Win64-project from Delphi 10.2 to 11.2 and TChart from 2017.22 to 2022.36. I also had TChart 2022.34 installed but after seeing the growing boxes and finding this thread, I upgraded to the most recent version. Unfortunately, this did not help to fix the issue.
I see this discussion is from July and the current TChart 2022.36 is from late September. Did the fix make it into the current version? If not, could you provide the fix proposal to me?
Many thanks in advance!
We still have more or lesss the same issue as in the original post. We have recently upgraded an older Win64-project from Delphi 10.2 to 11.2 and TChart from 2017.22 to 2022.36. I also had TChart 2022.34 installed but after seeing the growing boxes and finding this thread, I upgraded to the most recent version. Unfortunately, this did not help to fix the issue.
I see this discussion is from July and the current TChart 2022.36 is from late September. Did the fix make it into the current version? If not, could you provide the fix proposal to me?
Many thanks in advance!
Re: Show/Hide Series checkboxes too big
Hello Kai,
the person who took care about this item is on vacation time until 9th Jan, and I'm not sure if you a specific code is needed in order to fix it.
Please, let me advise him so he can send it to you as soon as he back.
Best regards
the person who took care about this item is on vacation time until 9th Jan, and I'm not sure if you a specific code is needed in order to fix it.
Please, let me advise him so he can send it to you as soon as he back.
Best regards
Pep Jorge
http://support.steema.com
http://support.steema.com
Re: Show/Hide Series checkboxes too big
Hello,
I'll give it a try at the examples in this thread and let you know.
Indeed the change should be in v2022.36.
I'll give it a try at the examples in this thread and let you know.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |