Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Controlling resize and anchoring
Message
From
17/01/2007 09:40:19
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01185929
Message ID:
01186235
Views:
33
>>>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
>****
>
Unfortunately, it's not that simple. Some things are added up front, others are added later based on user choices. Things can be moved. The user can resize.

The distinction I really need to make is between programmatic and interactive changes of position.

Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform