Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
More resizing woes
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
More resizing woes
Divers
Thread ID:
00180375
Message ID:
00180375
Vues:
50
I put the following code in the init of my form class: (To Ed: I didn't use activate because I don't want it running so much)

THIS.rel_height = THIS.HEIGHT/768
THIS.rel_width = THIS.WIDTH/1024
THIS.height = _SCREEN.Height * THIS.rel_height
THIS.width = _SCREEN.width * THIS.rel_width
THIS.Resize()

I used 768/1024 because my laptop can't go down to 640/480 and I needed to simulate a lower resolution.

On my computer, this works fine. The form resizes and all the controls resize with it. You get the same form in miniature.

On my test user's computer (640/480), it shrinks and resizes as well, but it cuts off the right end. It's as though the form ends in the middle of a bunch of controls. This happens if I use 768/1024 or 478/800 as my base height/width. If I then resize the form, all the controls stay in their relative positions.

The other problem is that it autocenters before the resize. Is there a formula for centering the form, or a method to call?

Thanks,

-Michelle
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform