Open kalatchev opened 5 months ago
Hi,
Thanks! I'm working on an AOT version but I'm waiting for some Microsoft's pieces improvements (namely C#/WinRT).
It's not aware in the sense that the application's window will not scale when moved from say a 100% to a 150% screen but it's aware in the sense that it's declared as dpiAwareness PerMonitorV2, and it should not disfunction (as some UI framework do even when they are supposedly "aware") when moved over, ie: the whole window should display fine and identical when moved around, unless I've missed something.
It also means you should be able to add some custom code, or override things to adapt if needed.
Do you have a specific scenario in mind?
I’m not sure if this is the case he’s talking about, but the following image shows the display effect at 150%, and these appears to be smaller than when I started at 100%.
How exactly do you get to see that? This is what I get with a 150% scale:
I use a 14-inch laptop with Windows11 24H2, the previous screenshot was of me maximizing the window
I don't reproduce what you see, it seems related to rich text boxes (codebox that display sample colorized sample code). Other texts seems the same size.
I've added some extra diagnostics you can post here (you must get latest and recompile), here is mine (in About / System Info):
Ok, I get it, it's related to the primary display, I have two and was doing my testing with a non-primary one. You have only one. When I change DPI for the primary one I also see bigger Rich Text Boxes.
Rich Text Box is one of rare Wice components that rely on an underlying windows component (Richedit or Office Richedit https://learn.microsoft.com/en-us/windows/win32/controls/about-rich-edit-controls). Apparently this behaves in a way that causes the difference between Wice texts and Rich Text Box texts.
I need to investigate this further.
Ok I've made some changes in RichTextBox code (and also in titlebar which had some issues in hi-DPI contexts too). Can you try it?
RichTextBox and titlebar look fine
old
new
Kudos for the project!
I found that at least demo, is not scaling aware.