Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Controlling resize and anchoring
Message
 
À
16/01/2007 13:06:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01185929
Message ID:
01186171
Vues:
38
>>Can you first Resize the form and then add the controls?
>
>No. Things are added to the form dynamically by the user, and the user must have the ability to resize.
>
>Tamar

If I understand you correctly, you want to stop Resize of the object during the first init of the form, resize the form and then allow controls resize. Is this right? If so because you build the form and add controls with code I suggested you in the init first to resize the form to its initial Height and Width and then add Achored controls. That way you don't need any flags.
Something like:
*** There where you add controls:
***  Set form original Height and Width
thisform.Height = 100
thisform.Width  = 200

*** Add controls
thisform.NewObject([MyAnc],[.....])
thisform.MyAnc.Left   = 0
....
** Resize the form to last user choice
****
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform