Hi,After upgrading from 18.2 to 19.1all of the UltraCheckBoxes and Ultra radio button lists are very tiny.Everything else looks fine.Regular System.Windows.Forms.CheckBox is also fine.
I use a 4k monitor for design and viewing.Visual Studio 2019, windows 10 latest.
It looked fine before this upgrade.Any suggestions, as have thousands of these in various forms.(this is a large app with hundreds of screens)For the checkboxes i can change these over to regular windows checkboxes by editing directly in the designer file for win formsNot so easy for radio button lists or ultra radio buttons in group managers.The text size is fine, just the size of checkboxes and radio buttons.Thanks,Michael
Hi Michael,
Nothing should have changed here. But we did introduce a CTP of some High-Dpi support in v19.1. So I suspect this was introduced along with that functionality.
But there are a lot of factors to consider here in order to figure out what's going on.
In order to test this out, I ran a sample in v18.2- before we changed anything for Dpi Scaling. In this version, I find that the CheckBoxes and Radio buttons are much too small. This is consistent with everything I know and have seen about Dpi Scaling, so I'm a little confused that you say it was working correctly for you before.
Then I tried the same test using v19.1, and in this version, and I get the same results. This is because the High-Dpi support is a CTP and is turned off by default.
To turn it on, you have to do this:
Infragistics.Win.DpiUtilities.MaxInfragisticsDpiAwareness = Infragistics.Win.InfragisticsDpiAwareness.PerMonitorDpiAware;
Once I do this, the checkboxes and radio buttons work correctly - they draw larger on a high-Dpi monitor just like the inbox controls.
My test applications are, of course, opting in to Dpi Scaling support for Windows. Just as a test, I tried removing that opt-in, and in that case, I find that the DotNet framework does not automatically size the form or any of the control for Dpi Scaling, so the CheckBoxes and radio buttons are all very small on a high-Dpi monitor, but they are, of course, the same size as the inbox CheckBox and RadioButton.
Also, MS has made incremental changes to high-DPI support in the DotNet framework over a range of CLR's.
So I guess the first thing to do would be to determine what version of the DotNet Framework you are using and whether your application is opting-in to high-Dpi support.
If you go to your project properties and look at the application tab, you can see the Target framework.
Opting into high-DPI support can be done in a number of ways, but typically you would use the app.config and app.manifest files.
Oh... one other factor here is OS Themes. The drawing of the glyphs goes down different code paths depending on whether themes are turned on or off and also the Style. I believe they use OS Themes by default. But your application may be turning that off either in code or by loading a Style Library.
It might be best if you can simply send me a sample project that duplicates the issue. That way we can cut through all of these different factors and see what's going on.
But right now, I seem to be getting the exact opposite of the behavior you describe.
Hi, I have 'Enable XP Visual Styles' enables in project settingsI turn off 'Use OS themes' for some elements like ultrabuttons to style them.I tried toggling 'Use OS themes' on and off for the ultra mdi tab manager with no effect , i.e., the screen shots loaded above remain the same.Will create a sample project to try to duplicate things,and will include an ultraTabMdiManager, ultraListView, buttons, labels, etc.Give me a couple days for that, as soon as have the bandwidth.