Home > Back-end >  Program interface is not affected by system resolution zoom percentage
Program interface is not affected by system resolution zoom percentage

Time:11-06

Which friend can help, procedures and controls the size of the interface display, how could you not influenced by system resolution zoom percentage?

CodePudding user response:

For VCL applications, with a constant DPI save design time, such as a const DesignTimeDPI=96; Then write in the Form of the Create events ScaleBy (DesignTimeDPI PixelsPerInch);

CodePudding user response:

reference 1/f, play big shoot early nuclear response:
for VCL applications, with a constant DPI save design time, such as a const DesignTimeDPI=96; Then write in the Form of the Create events ScaleBy (DesignTimeDPI PixelsPerInch);


According to the great god says such changes, or has no effect, the resolution of the design and the other machine using the resolution is the same, is 1920 x1080, zoom percentage is 125%, just use the machine system program including overall appearance of size fonts, images, buttons will grow 25%, image distortion of some fuzzy! Want to solve this problem, I don't know me clearly stated no!!!!!

CodePudding user response:

Do you want to put the software on the development machine DPI, namely Form PixelsPerInch down, is not necessarily I write 96, general system setting small font is 96 DPI, large font is 120 DPI, can also be customized, ScaleBy (M, D); Is the component size scaling to M/D, assuming your computer Settings when the design is 96 dpi, software running of computer is 120 dpi, Windows will automatically control the standard (that is, all kinds of window), enlarge 120/96=125%, and then you ScaleBy (96, 120); Will shrink back to design state, the measured effective,

CodePudding user response:

Two days before had this problem in computer don't have this problem

CodePudding user response:

reference 3 floor early play play nuclear response:
what do you want to put the software on the development machine DPI, namely Form PixelsPerInch down, is not necessarily I write 96, general system set up small font is 96 DPI, large font is 120 DPI, can also be customized, ScaleBy (M, D); Is the component size scaling to M/D, assuming your computer Settings when the design is 96 dpi, software running of computer is 120 dpi, Windows will automatically control the standard (that is, all kinds of window), enlarge 120/96=125%, and then you ScaleBy (96, 120); Will shrink back to design state, the measured effective,


How do you do a great god, and I use delphi7, tried, in the way you said I am at the virtual machine XP compile source program, FORM PixelsPerInch is 96, I put the machine win10 system
Display resolution zoom ratio of 100% and 125% in the FORM of PixelsPerInch attributes why are is 96, don't know why, when 125% to run the program or magnified, if direct write ScaleBy FORM (96, 120) size reduced, the inside of the control including image imgbtn without narrowing, such as version, or certain properties I set wrong, I searched online a lot about this information, all not line!

CodePudding user response:

Some do not have the right to zoom component may be caused by attributes such as AutoSize
  • Related