Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is the height of a maximized form?
Message
De
23/01/2006 11:23:12
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Divers
Thread ID:
01089332
Message ID:
01089398
Vues:
35
Sergey,

Thank you very much for your reply. I think I managed to figure out what was going on. The problem was that I didn't know when the Height property changed. The form was opened with DO FORM NOSHOW. In the form's Init method, I was setting its WindowState to 2 (maximized). I was expecting that the Height would change immediately. It didn't. I debugged the Form.Show event handling code. Inside there, the form still had its old height. But as soon as that code finished, the form's height changed as expected. So, I moved the code that cares about the form's height into the form's Activate method, which is fired after Show, and it worked.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform