Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Controlling resize and anchoring
Message
De
20/01/2007 09:07:32
 
 
À
20/01/2007 08:23:12
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:
01187329
Vues:
30
>You may want a reanchoring everytime you do a programmtic resize, then let lDontAnchor and lReanchor be the same flag property.

But it's a good idea to have two flags, as you also want to move and size controls *AND* afterward anchor at that new position and size.

so you could name the first flag lReposition instad of lDontAnchor, setting the property to the passed in new value, if lReposition is true.

Then you can now:

1) add controls, move and size them and reanchor them with lReposition=.t. and lReanchor = .t.
2) resize the form and make place for new controls with llReposition=.f. and lReanchor = .t.
3) resize the form and let anchoring take effect with lReposition=.t. and lReanchor = .f.

And all this, without setting Anchor to 0 and back yourself.

With the fourth possibility of lReposition=.f. and lReanchor = .f. you would have new free space on the form, but a second resize with lReposition=.t. and lReanchor = .f. would result in the controls behaving as if the first and second resize would have been done in a single step. So in fact this constellation does not make sense.

Bye, Olaf.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform