Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Resizing forms for different resolutions
Message
De
23/03/1998 16:39:53
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00086517
Message ID:
00086547
Vues:
24
>>I downloaded and obtained source code for the Resize.vcx available in the Files section. It works great for adjusting the controls when the form is resized at runtime, but I can't get the forms to come up right on a 640x480 screen when it was developed on a 800x600 display. Has anyone managed to do this? Thanks!
>
>In this case, you may want to use sysmetric() to determine the screen resolution at runtime - and then manually change the Width and Height of the form to fit in the 640x480 area. Since you are directly manipuating the width and height properties - the form's Resize()Event will fire.

I played around with this but couldn't get it to work just right. The Resize class doesn't resize the form itself and I couldn't figure out exactly when I should do it in the code. Everything I tried didn't come out right. I'd love to hear from someone who already did it.
Elyse Pomerantz
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform