Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form Resize() method
Message
From
25/04/2015 06:25:25
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01619083
Message ID:
01619116
Views:
49
>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.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform