Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Proportional resizing of forms
Message
From
21/02/2023 07:13:26
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
21/02/2023 06:36:58
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01686228
Message ID:
01686234
Views:
54
>Thanks, Martina. The thing is that Anchor works fine for moving and resizing the controls on the form. What we're trying to do is manage the size of the form itself and keep it in the same ratio.
>
>Tamar

Hi Tamar.

What I do is to put anything into an otherwise useless borderless transparent container, and let the forms Resize .MOVE() this container so that it keeps it's ratio and centres it as good as possible. (keep top left is more ugly). So there is little maths in forms resize. The containers Resize does not fire twice as with WIDTH and HEIGHT props.
The container itself must take care of the objects contained, but can trust its ratio, what makes the maths more easy.
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Reply
Map
View

Click here to load this message in the networking platform