Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reduce/Enlarge windows isometrically
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00039056
Message ID:
00039182
Vues:
34
>>Sorry, I forgot to mention that I suggest adding the form property of nRatio and setting it in the form' INIT to the original >ThisForm.Height/ThisForm.Width ratio.
>>
>>INIT method:
>>
>>ThisForm.nRatio = ThisForm.Height/ThisForm.Width
>>
>>This eliminates the need to have the other 2 form properties. I suggested this because I finally realized that the ratio would never change regardless of the height or width. Then in the resize method all you need is the ThisForm.nRatio value.
>Mark,
>
>That would work except the other two properties would allow you to determine which aspect had changed the greatest amount and make that the one which the other is based on. So that if the user dragged the corner and changed both height and width the code would use the greaster change to adjust the form size. Using only the ratio this would not be possible.

You are very correct. I lost sight of the original request. I tried to get "too cute."
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform