-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cases where SVG icons do not scale with the Windows scaling factor #284
Comments
SVGvirtualImageList is for old Delphi versions. Use a standard VirutalImageList, linked to an SVGImageCollection instead. |
Got it thanks. Any ideas? |
You must be doing something wrong. Read the documentation about the VirtualImageList. The whole point is that DPI scaling is done automatically |
Right, and it does scale automatically except in the cases aforementioned, namely programmatic creation of controls + link of image list, and main menu. Thanks for your time, I'll see what can be done |
I'll investigate as soon as possible... |
Can you give me a zip with a sample example to check the problem? |
Apologies for the delay, got side-tracked. If I'm not mistaken, data-modules being non-visual will not take scaling into consideration. |
Hello,
Browsing the issues, I found a few related to scaling, though I'm not sure if they overlap with this one.
Note that, when done at design-time, the button size scales, and the SVG image scales with it, without any manual intervention.
Here is a screenshot of the MenuItem with the small glyph at scaling factor 150%.
Note that, in both cases, manually tweaking the SvgVirtualImageList.Size does impact the icons.
The question is, should it be done manually on program start?
Is there a better way to achieve the expected scaling result?
Thanks
The text was updated successfully, but these errors were encountered: