View Single Post
  #11  
Old 25-03-2019, 09:16
Schabik Schabik is offline
Registered User
 
Join Date: Dec 2008
Location: Somewhere in Poland
Posts: 152
Thanks: 17
Thanked 35 Times in 32 Posts
Schabik is on a distinguished road
Quote:
Originally Posted by Cesar82 View Post
I do not know what's happening to you.
Here in Full HD resolution change to 125%, 150% 175% works normal.
OK I'll check it out tomorrow


Ok, the case looks like this,


If I run on basic script (modified only with the statements that verify the selected components to modify files) on my PC with 100% DPI scaling it works fine, the same is after changing to 125%, 150% and 175% but with already runned setup.

I forgot to mention, on both Desktop and Laptop I have 1980x1080 resolution, and on Laptop 125% scaling, as for Desktop 100%


If I run the setup after changing the scale to for example 125% it looks like that:


2019-03-26_09h39_27.png


so, the DPICalculator in fact does not work...


Edit:


Ok, @KaktoR, @Cesar82 Problem solved.


The Case was that in the original script there were absolute coordinates and sizes for the size of Forms etc.


Just change the absolute sizes to SizeX and SizeY values and Voila
For Example if You Have "WilkommenLabel.Width := 600" change it to "WilkommenLabel.Width := SizeX(600)", for "*.Height :=300" change to "*.Height = SizeY(300)", "Top :=" to "Top := SizeY()", "Left :=" to "Left := SizeX()".




Tested it on "WillkommenLabel" and it works.

Last edited by Schabik; 28-03-2019 at 05:46.
Reply With Quote
The Following User Says Thank You to Schabik For This Useful Post:
Titeuf (25-03-2019)