Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting correct maximized height & width before show()
Message
De
20/12/1999 20:12:29
 
 
À
20/12/1999 11:09:02
Isabel Cabanne
Hubbard Woods Software, Inc.
Winnetka, Illinois, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00306172
Message ID:
00306510
Vues:
21
>I have an activeDoc application with forms set at design to WindowState=2 (maximized). When instantiating the forms, I size controls based on the height and width of the form. However, the maximized height and width of the form are not available until after the show() event, so my controls don't resize properly. Has anyone tackled this problem, and do you have a clean resolution?
>
>Thanks.

One possible esolution is to move certain code to form.activate event, e.g.
***Form.Init
This.FirstActivateFlag=.T.
***Form.Activate
IF This.FirstActivateFlag=.T.
 This.FirstActivateFlag=.F.
 *** and run your code here 
ENDIF
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform