Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Proportional resizing of forms
Message
De
21/02/2023 07:13:26
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
21/02/2023 06:36:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01686228
Message ID:
01686234
Vues:
55
>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]
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform