1 (edited by thezimguy 2020-02-25 15:57:57)

Topic: [SOLVED] Scaling Form and Controls to fit higher resolutions

Good day family,
Please, is there a way in MVD to scale form and it's controls to fit a higher resolution. Example using scaleBy or any other method.
Thank you in advance

@thezimguy

Re: [SOLVED] Scaling Form and Controls to fit higher resolutions

Hello.


Please download latest beta version
https://www.dropbox.com/s/gczabpgu8tyei … a.zip?dl=0


Added the procedure ScaleBy for forms.
More info
http://docs.embarcadero.com/products/ra … aleBy.html



Example, how to scale on 50%. You can call this procedure between begin end. in the bottom of the script

begin
    Form1.ScaleBy(150, 100); 
    Form1.TableGrid1.RowSize := 24; // for TableGrid you must manually specify a new row height and header height.
    Form1.TableGrid1.HeaderSize := 24;

    Form2.ScaleBy(150, 100); 
end.
Dmitry.

Re: [SOLVED] Scaling Form and Controls to fit higher resolutions

This is perfect.
Thank you.

@thezimguy