LCL Scaling on Windows lazarus / 31-LCL ---------------------------------------------------------------------- Nicola Gorlandi · 2022-02-04 06:03 Hi all, I would like to show my app on Windows using a custom "scaled factor". At the moment the scaling works fine if I change the scaling factor of the monitor in Windows, but this affects all the applications. I would like to force this only for my application; I have tried to change it only on ".exe" property without success. I can obtain what I want only once the form is desigend on screen using these two lines (called manually by the user via button on click). Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i         toPPI := round((zoomFactor * aForm.DesignTimePPI) / 100);        aForm.AutoAdjustLayout(TLayoutAdjustmentPolicy.lapAutoAdjustForDPI, aForm.DesignTimePPI, toPPI, aForm.Width, aForm.Width); Maybe someone have some suggestions ? Many thank ---------------------------------------------------------------------- AlexTP · 2022-02-04 07:59 Please see: https://wiki.freepascal.org/High_DPI ---------------------------------------------------------------------- wp · 2022-02-04 08:33 Quote from: Nicola Gorlandi on February 04, 2022, 07:03:25 amAt the moment the scaling works fine if I change the scaling factor of the monitor in Windows, but this affects all the applications. I would like to force this only for my application Why do you want to do that? If text is too small on a super-high-res monitor at 96 ppi, this affects every application, not only yours, and the possibility offered by the OS to crank up the ppi is the correct way to go. In my opinion there is no need for individual adjustments. ---------------------------------------------------------------------- Nicola Gorlandi · 2022-02-04 12:55 Many thanks for your post, I have already read https://wiki.freepascal.org/High_DPI but I do not find what I am looking for. I would like to do it because the application has a lot of grid with a lot of data inside and sometimes eyes become tired. for this reasaon I wuold like to have the possibility to change the dimension. ---------------------------------------------------------------------- wp · 2022-02-04 13:54 Maybe "ScaleBy" is what you need Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TForm1.SpeedButton1Click(Sender: TObject);begin  ScaleBy(11, 10);end; procedure TForm1.SpeedButton2Click(Sender: TObject);begin  ScaleBy(9, 10);end; Every click on SpeedButton1 increases, and every click on SpeedButton2 decreases the size of the form, its child controls and fonts by 10%. ---------------------------------------------------------------------- Nicola Gorlandi · 2022-02-06 07:18 Thank a lot, this is what I wnat. Appreciate.