dpi-aware

Icons sizing not increasing in higher DPI

自作多情 提交于 2020-01-13 07:24:11
问题 I am facing this issue while DPI is greater than 100. I have changed the size of the icons such as bold, italics and when I run the program in 100 dpi, the icons sizes are bigger but when i run the program after changing to dpi greater than 100 the icons are getting smaller, and not updating to any size values . I have tried autosize = false, imagescaling to none. 回答1: Working with "System.Drawing.Icon" icons you should keep in mind to use a bigger size of the icon if you use DPI greater than

My WPF app is per-monitor dpi-aware out of the box. I was not expecting that?

ぐ巨炮叔叔 提交于 2020-01-12 18:53:08
问题 I am a bit confused about per-monitor dpi-aware in WPF. I thought you need to do some work to make your windows scale properly on different monitors (as described in Developing a Per-Monitor DPI-Aware WPF Application). But I've just ran my app on pc with two monitors (2560x1440 and 2160x1440) and the dialogue would automatically scale itself when I move it between monitors. That's on the latest fast ring Windows 10. Am I missing something? 回答1: What you see is an example of System scaling

Declaring high DPI awareness per window on Windows 8

时光怂恿深爱的人放手 提交于 2019-12-17 16:26:50
问题 I'm developing audio plugins that run within a host such as Cubase, and I'm looking to add High DPI support. This is problematic because all host applications that I know of declare themselves as non-high DPI aware, so all windows are scaled automatically by the DWM. I'm looking for a way to turn off DWM DPI scaling for the plugin window, even if the host itself is not DPI-aware (so it uses DWM DPI scaling for all other windows). Does anyone know if this is possible at all? For applications

Wrong auto-scaling controls with anchors on PageControl in VCL form

爱⌒轻易说出口 提交于 2019-12-08 10:59:38
问题 I have problems with auto-scaling of controls on my form for different monitor DPI settings. Rad Studio 10.2 Tokio. "Enable high-dpi" is on. I set the form's PixelsPerInch to 96 at design time. I put TPageControl on a form, create a TTabSheet page in it, put some controls on a page and set their Anchor property to akRight (in addition to akLeft and akTop). When the program is run on a monitor with a resolution of 120 DPI right edge of those controls appear extended beyond the right boundary

DPI aware and Rect

孤街浪徒 提交于 2019-12-06 03:53:21
问题 I got a small problem which I can't seem to find the answer of. I have a application that gets certain processes and gets the window size of it. Only the problem is it takes a percentage of the actual screen size (which the user sees). I want to make a screenshot of the application, but if I use the Rect of the window I get a smaller screen than it is, because the resolotion is 125%. This means my original resolution which gets outputted ( 1280 * 800 ) is smaller then my screen resolution (

Icons sizing not increasing in higher DPI

浪子不回头ぞ 提交于 2019-12-04 21:39:13
I am facing this issue while DPI is greater than 100. I have changed the size of the icons such as bold, italics and when I run the program in 100 dpi, the icons sizes are bigger but when i run the program after changing to dpi greater than 100 the icons are getting smaller, and not updating to any size values . I have tried autosize = false, imagescaling to none. Working with "System.Drawing.Icon" icons you should keep in mind to use a bigger size of the icon if you use DPI greater than 100. The property autosize does not help here. The file of the icon can contain within different sizes so

How to configure an app to run correctly on a machine with a high DPI setting (e.g. 150%)?

微笑、不失礼 提交于 2019-12-04 06:30:02
问题 I've created a simple Winforms application in C#. When I run the application on a machine with high DPI settings (e.g. 150%), the application gets scaled up. So far so good! But instead of rendering the fonts with a higher font size, all texts are just scaled up, too. That of course leads to very blurry text (on all controls like buttons etc.). Shouldn't windows take care of rendering the texts correctly? For example my application's title bar is rendered crisp & clear. 回答1: Once you go past

How to configure an app to run correctly on a machine with a high DPI setting (e.g. 150%)?

核能气质少年 提交于 2019-12-02 09:28:39
I've created a simple Winforms application in C#. When I run the application on a machine with high DPI settings (e.g. 150%), the application gets scaled up. So far so good! But instead of rendering the fonts with a higher font size, all texts are just scaled up, too. That of course leads to very blurry text (on all controls like buttons etc.). Shouldn't windows take care of rendering the texts correctly? For example my application's title bar is rendered crisp & clear. Once you go past 100% (or 125% with the "XP-style DPI scaling" checkbox ticked), Windows by default takes over the scaling of

Declaring high DPI awareness per window on Windows 8

痞子三分冷 提交于 2019-11-27 22:35:57
I'm developing audio plugins that run within a host such as Cubase, and I'm looking to add High DPI support. This is problematic because all host applications that I know of declare themselves as non-high DPI aware, so all windows are scaled automatically by the DWM. I'm looking for a way to turn off DWM DPI scaling for the plugin window, even if the host itself is not DPI-aware (so it uses DWM DPI scaling for all other windows). Does anyone know if this is possible at all? For applications that use a lot of plugins, such as audio hosts, this is a very real problem because they can't just go

Java disable dpi-aware not working

喜欢而已 提交于 2019-11-27 17:53:09
I'm trying to run a Java application with -Dsun.java2d.dpiaware=false argument but nothing happens. I expect to have a blurred UI but with normal size of icons and fonts, it seems that this flag does not work. I'm using JDK 1.8.0_45 on Windows 8.1. I found this bug https://bugs.openjdk.java.net/browse/JDK-8080153 but I don't understand how to workaround it. Fix for Windows, follow these steps: Create a windows regedit new DWORD Press Windows Button + R, type “regedit”, and then click OK. Navigate to the following registry subkey: HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > Windows >