theilgaz / ScaleObjects

Scale your Delphi Application forms and form components automatically. This is an example project for ScaleForm function which helps you to re-scale your form and inner components of your form with the ratio and dimention you wished.
Apache License 2.0
16 stars 7 forks source link

Functions içinde orantıda bir düzeltme önerisi #1

Open mrmarman opened 5 years ago

mrmarman commented 5 years ago

@ilgazdev Merhaba.

Örnekte (kendi bilgisayarımda) "Büyüt" butonuna basınca da küçülüyordu. İnceleyince 50 / 50 olunca aynı oranı koruduğunu gözlemledim. Dolayısıyla aşağıdaki şekilde bir düzeltme bende iş gördü. Saygılarımla.

case AType of // make larger TLarger: begin AForm.scaleby(trunc(ratio * 50), 40); end; // make smaller TSmaller: AForm.scaleby(trunc(ratio * 50), 60); end;