Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Resize method and windowstate
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Resize method and windowstate
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01443332
Message ID:
01443332
Vues:
167
Hello,

I have a setting where the form can be maximized or normal windowstate at INIT.
The form is also resizable, and some controls are resized in the RESIZE() event of the form.
The resize event takes the form's width and height into account to resize the controls, but after changing the windowstate in the INIT() to maximized, the width and height properties of the form do not reflect the actual width and height, unless I change the Visible property to .T..

The code is as follows:
* Procedure INIT
THIS.WindowState = 2 &&Maximized
*-- This is necessary to have the resize method work properly:
THIS.Visible = .T.
THIS.Resize()
But I usually don't want to change the form's visible property in the init. Is there are more elegant way to do this?
Christian Isberner
Software Consultant
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform