Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reduce/Enlarge windows isometrically
Message
 
 
À
09/07/1997 04:59:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00039056
Message ID:
00039066
Vues:
23
>Can someone tell me, how I can ensure, that a window could be reduce
>or enlarge only isometrically? (I mean the height and width ratio stays the same.) Is it possible or not?
>
>Thanks in advance.
>
>BB

Yes it is possible. Each form as a Height and Width property. You can determine the ration of height/width, change the height or the width then calculate the other using the ratio.

nRatio=ThisForm.Width/ThisForm.Height
ThisForm.Width=ThisForm.Width+50 && or shrink it by subtracting
ThisForm.Height=ThisForm.Width/nRatio

You could also set up this code in a separate UDF and call it from with the form to resize it.

HTH
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform