Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Resize class doesn't seem to work with Maximized form!
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
00958223
Message ID:
00958234
Vues:
23
>I created a class based mostly on the resizer in Marcia's '1001 Things ...' book. I've created a form class that has this resizer class on it (design time). The form's Resize event has the code:
>
>this.ntmResizer._AdjustControls(this)
>
>
>The form class also has the WindowState property set to 2 - Maximized. For some reason, the controls never get adjusted when the screen is initially displayed.
>
>Once the form is displayed and I resize the form, controls grow and shrink appropriately. It's almost as if the Resize() event never gets called when the form initially maximizes.
>
>Any ideas on why this might be or what can be done to get the form to call resize when it Maximizes the window initially?
>
>Thanks in advance.
>
>Rodd

Because your form starts out maximized, the resize event does not fire.

Try putting this.ntmResizer._AdjustControls(this) in to init event of the form.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform