>I am trying to understand the purpose of this method (Resize).
>Does VFP automatically call this method when ANY object on the form is resized? Or only when the Form itself is resized?
>
>And if you resize the form (in a method of any object, e.g. a splitter), does it matter if you change positions of other object of the form in the form Resize() method or there is not difference if the change is done in the method where "positions" have been changed?
For your last question. It does not make a different in the result but in the way to it.
What you positivly need to avoid is:
calling forms or objects (containers) resize over and over
So have on central place that does the job, best is a method called from forms resize (event calls method ...) because this will fire under all circumstances.
Make shure to only resize one time. This is do not change forms width and height properties seperatly. USE OBJECT.MOVE(..) This will result in a single call to resize. (and to MOVED for that)
So basically I would see that each container (form, container pageframe) handles it's own contained objects
For your idea changing the form width rather then ist ratio I would changes form's width and let the form decide where to place the objects. This will fire the same code if you just resize the form.
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]