Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Controlling resize and anchoring
Message
 
To
16/01/2007 13:06:03
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01185929
Message ID:
01186171
Views:
32
>>Can you first Resize the form and then add the controls?
>
>No. Things are added to the form dynamically by the user, and the user must have the ability to resize.
>
>Tamar

If I understand you correctly, you want to stop Resize of the object during the first init of the form, resize the form and then allow controls resize. Is this right? If so because you build the form and add controls with code I suggested you in the init first to resize the form to its initial Height and Width and then add Achored controls. That way you don't need any flags.
Something like:
*** There where you add controls:
***  Set form original Height and Width
thisform.Height = 100
thisform.Width  = 200

*** Add controls
thisform.NewObject([MyAnc],[.....])
thisform.MyAnc.Left   = 0
....
** Resize the form to last user choice
****
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform