Hello,
I use TAdvGlowButton in a lot of Frame and I noticed that when ParentFont = True the caption size is bigger (HDPI factor) than expected. It worked well before recent TMS updates.
here is the demo project:
IssueGlowButton.zip (2.8 KB)
Thanks a lot.
What Delphi version do you use?
Embarcadero® RAD Studio 12 Version 29.0.51511.6924
We investigated this and see the Delphi 12 IDE behaves strange for font size of components in frames. It changes the font size from default 9 to a new size dependent on the DPI%. It does the same for a TButton but somehow the TButton ignores this when rendering. You can easily verify this by adding a TButton to your frame.
Regardless, we think the IDE behavior is wrong but we have implemented a workaround for it.
I tried what you explain on my 200% dpi monitors and it looks weird. I used ParentFont = True for every components except for Form where ParentFont = False by default.
TButton seems to be displayed as designed and font size/height are the same in both Form and Frame (size 9 / height -24).
TAdvGlowButton has a wrong font size/height in Form (size 10 / height -27) so maybe there is something to check in this case.
here is the updated demo project with a screenshot:
IssueGlowButton.zip (32.9 KB)
Thank for your quick answers. You do a great support.
I answered that we implemented a workaround. This workaround will be included in our next release. (first week of Sept)
1 Like