General information
Category:
Forms & Form designer
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only