Questions tagged [highdpi]

205 questions
3
votes
1 answer

Win32 Get unscaled Virtual Desktop size in C++

Working on a C++ application, trying to map the mouse from the coordinates to the full screen windows. Getting the mouse coordinates with GetPhysicalCursorPos(&mouse_point); which returns the coordinates relative to the origin 0,0. This is causing…
Space Bear
  • 755
  • 1
  • 6
  • 18
3
votes
0 answers

Delphi 11 Form Designer Scaling

I just downloaded and installed a Trial of Rad Studio 11 on a Lenovo Yoga 720 with 16GB of RAM running Win 10 Pro. The laptop supports 4K resolution. Forms designed in the IDE do not display the same when the application is run with a per Monitor v2…
Terry Thompson
  • 489
  • 2
  • 15
3
votes
0 answers

WinForms does not scale sizes correctly when changing DPI (even for simple controls)

I cannot get WinForms to properly scale the UI when the DPI setting is changed: different controls are scaled by a different factor, messing up the UI design. This is what I’ve tried: In Windows 7 set the text size to 100% (= 96 dpi). Start Visual…
3
votes
1 answer

exe4j high dpi settings

What are the best settings for creating an executable to run on windows 10 with scaling. I have tried setting the DPI-aware on true and false, but nothing seems to have effect. I've also tried several system-properties but without any succes either.…
Bart
  • 61
  • 6
3
votes
0 answers

Button Border clipped in WPF with 125% DPI Setting

When I use 125% DPI setting in Windows, sometimes a button border is not rendered. It seems to depend on the size and position, maybe also the parent element of a button: In my app, I can also see in the WPF designer that a parent border seems to…
Lumo
  • 627
  • 6
  • 21
3
votes
1 answer

Tab height does not reflect high DPI on custom/userpaint TabControl

I have written a custom TabControl class, but I'm unable to make the tabs adapt their heights on high DPI screens. On a screen with 200% scaling, the tabs are halfway covered by the actual tab page and its controls, like this: Apparently the…
jerha202
  • 187
  • 1
  • 9
3
votes
3 answers

Setting "Override high DPI scaling" to "System (Enhanced)" programmatically or with a manifest (MinGW)

I tried all possible combinations of gdiScaling and dpiAware, still no luck. If I manually right click app.exe and set "Override high DPI scaling" to "System (Enhanced)", it works great.
Alex
  • 34,581
  • 26
  • 91
  • 135
3
votes
3 answers

How can I get updated system DPI information from X11 in a C program?

I'm trying to create a DPI aware app which responds to user requested DPI change events by resizing the window. The program in question is created in C and uses SDL2, however to retrieve system DPI information I use xlib directly, as the SDL DPI…
3
votes
2 answers

Scaling non-client area for per-monitor high-DPI support on application supporting Windows 8.1

I'm developing an application that runs on Windows 10 and 8.1 and have run against the problem of scaling the non-client area (menu bar, title bar) when moving between monitors with different DPI. The client area is handled but the non-client area…
Dan
  • 107
  • 6
3
votes
2 answers

Delphi application not high DPI (although the manifest looks good)

I'm having trouble to get my Delphi (10.1 Berlin Update 2) application behave correctly in high DPI on Windows 10, April 2018 update. The whole application is by default blurry (scaled by the OS), but if I change the DPI-settings (properties of the…
Laurens
  • 325
  • 2
  • 12
3
votes
2 answers

What is the best way to scale images for high DPI in Qt5?

We have various images in our application (displayed from a QPixmap in a QLabel) that appear at a reasonable size on non-high DPI screens but are shrunken on high DPI. The other UI elements look fine. I've looked at the devicePixelRatioF() function…
Alan Spark
  • 8,152
  • 8
  • 56
  • 91
3
votes
3 answers

Programmatically override the High DPI awareness

There is a new option for the End User in Windows 10 Creator's Update Edition. The End User can change properties for an EXE on the compatibility tab to "Override High DPI Scaling Behavior" and set it to System (Enhanced). I tested it and it works…
user173399
  • 464
  • 5
  • 21
3
votes
1 answer

Why this 100% width image is bigger than screen width * device pixel ratio

I'm sure I'm missing something here. Why this 100% width image is bigger than window.screen.width * window.devicePixelRatio If the screen width equals to 360px and the device ratio is 2 Shouldn't this 100% width image equals to 720px instead of the…
Cesar
  • 4,076
  • 8
  • 44
  • 68
3
votes
1 answer

HorizontalOffset goes in the wrong direction for High DPI primary screen

I am currently working on some high DPI issues in our WPF app (.NET 4.6.1 - System DPI-awareness is active). Generally the app does what we expect it to do - scale depending on the current displays DPI setting, also when moving it from screen A @…
Christoph Fink
  • 22,727
  • 9
  • 68
  • 113
3
votes
0 answers

How to set font to the Popup Menu?

I have an issue with showing Popup Menu in a Windows application. I have no opportunity to set it's font size. I need to do this, for example, when I have two monitors with different DPI and want to show the menu at the monitor with a DPI different…
deserg
  • 71
  • 1
  • 7