App Auto Resize - Forum

Forum Navigation
You need to log in to create posts and topics.

App Auto Resize

Hi guys, i need my application to resize to window height automatically. Thank You

Hi!

I don’t understand what exactly should resize.

The project properties have a resized tab. You can use this.

@vadim

i mean that when my app is 200x400 (200 width and 400 height) This is the size i build my app

When i open the app on a laptop which resolutions is 800 by 600 (800 width and 600 height), the app must automatically change to 600 height.

If i opened it on a PC that is 1680 x 1050, it must change the app height to 1050

This must change automatically when i start my app

Thank You

 

@impactband4u

Do you JUST want the App height to increase/decrease to that of the Screem height ?

Or are you also looking at having (the more difficult) changes to every object on the page ? ... if so, are you looking to ...

- increase/decrease their distances from the top of the screen ?
- or also their height and/or font size ?

Hi Gaev

Do you JUST want the App height to increase/decrease to that of the Screen height ?

Yes!

If you just need to change the height of the application, then just use two global variables. Use the global variable [ScreenHeight] to get the height of the screen. And one more thing to change the height of the application.

It is enough to add this line to the launch tab (in the project properties):

SetVar "[PubHeight]" "[ScreenHeight]"

 

proforma.guyot has reacted to this post.
proforma.guyot

@vadim

Works perfect! Thank You!