bdw_nz20 11 Posted March 19 (edited) I've just been playing a little bit with one of our applications to allow HDPI, not done much on this till now. Its working when changing the scaling for all windows i.e. change it in the display settings to 125%, 150% etc. I was just wondering if it was possible, like other applications can, to just adjust the VCL application rather than all windows. For example some windows allow Ctrl+ and Ctrl- keys to scale up and down of the window. Edited March 20 by bdw_nz20 Share this post Link to post
PeterBelow 238 Posted March 20 13 hours ago, bdw_nz20 said: I've just been playing a little bit with one of our applications to allow HDPI, not done much on this till now. Its working when changing the scaling for all windows i.e. change it in the display settings to 125%, 150% etc. I was just wondering if it was possible, like other applications can, to just adjust the VCL application rather than all windows. For example some windows allow Ctrl+ and Ctrl- keys to scale up and down of the window. You can experiment with the ScaleBy method all TWinControl descendants inherit, including forms. Share this post Link to post
David Heffernan 2345 Posted March 20 Problem with doing this is that it will scale your window size also which is usually not what you want. Share this post Link to post
Pat Foley 51 Posted March 20 I try to use EM units say roughly a font of 72 would be one inch high, on a laser printer of 600 dpi you get one inch high lettering. Using CSS you can set the sizing to show the ... when the ... rule is set. Somehow windows can make small images when hovering over an icon or medium size images in task view. What's neat the image is animated. Now I just right-size the form and use units of "fat-finger" on custom control resize events. This resize event helps on the 4k machines. Share this post Link to post
bdw_nz20 11 Posted March 22 Thanks all for the suggestions. I was hoping there was a simple Windows message the could be sent to trigger the DPI change to the application. Share this post Link to post
Remy Lebeau 1394 Posted March 23 (edited) 23 hours ago, bdw_nz20 said: I was hoping there was a simple Windows message the could be sent to trigger the DPI change to the application. Sorry, that is not how HDPI works. Edited March 23 by Remy Lebeau Share this post Link to post
bdw_nz20 11 Posted March 24 On 3/24/2024 at 9:19 AM, Remy Lebeau said: Sorry, that is not how HDPI works. Hey Remy, yes I do understand it was just a hope to make life easier for my testing of an application that can have many dynamically created displays to check it performs. My dev system has a 32 inch monitor which I use one side for IDE and other side for app testing rather than multiple monitors as I've had in the past. It just becomes a pain with all the various windows re-sizing and becoming useless (or difficult to use) while testing minor code changes. I was just looking for any easy way for my present setup to test more easily. Share this post Link to post