Laptop Full HD (1920x1080) and Window 10 or 11 scales to 125%.
So VFP(6) IDE is 1536x864 virtual pixels, still 1920x1080 hardware pixels. Resulting in blurry characters in IDE, but I can live with that.
Working on a program/form that I want to scale itself. Like 125% too or 140%, whatever.
Windows scale is set to default 100% by issuing commands:
DECLARE INTEGER SetProcessDPIAware IN WIN32API
SetProcessDPIAware()
If I would do that while a form is already visible at 125%, the form is immediately resized to 100%. IRL I issue these commands before any form is visible.
After test run of program within VFP's IDE and returning to IDE, scale 100% is still active so the characters in the IDE are very small and hard to read.
Only way to return to 125% in the IDE is to quit VFP and restart VFP.
I am looking for a (set of) commands to undo SetProcessDPIAware() that I can place at the end of my program so the IDE is "normal" and I don't have to quit after each test run. Any ideas?
I guess every programmer working on a Full HD laptop, making apps High DPI aware has the same problem. How do you solve this?
So VFP(6) IDE is 1536x864 virtual pixels, still 1920x1080 hardware pixels. Resulting in blurry characters in IDE, but I can live with that.
Working on a program/form that I want to scale itself. Like 125% too or 140%, whatever.
Windows scale is set to default 100% by issuing commands:
DECLARE INTEGER SetProcessDPIAware IN WIN32API
SetProcessDPIAware()
If I would do that while a form is already visible at 125%, the form is immediately resized to 100%. IRL I issue these commands before any form is visible.
After test run of program within VFP's IDE and returning to IDE, scale 100% is still active so the characters in the IDE are very small and hard to read.
Only way to return to 125% in the IDE is to quit VFP and restart VFP.
I am looking for a (set of) commands to undo SetProcessDPIAware() that I can place at the end of my program so the IDE is "normal" and I don't have to quit after each test run. Any ideas?
I guess every programmer working on a Full HD laptop, making apps High DPI aware has the same problem. How do you solve this?