Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Controlling resize and anchoring
Message
From
20/01/2007 09:07:32
 
 
To
20/01/2007 08:23:12
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01185929
Message ID:
01187329
Views:
22
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform