Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with Anchor
Message
From
30/07/2010 08:47:08
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01474567
Message ID:
01474591
Views:
57
Naomi --

You will see the effect you describe if you have changed the top/left/height/width of a control that has a non-zero anchor setting.

So, the trick is to set the anchor to zero before making the change, then set it back to its original value afterward.

Jim

>Hi everybody,
>
>I have a form with an editbox control and a grid control under it. Anchor of both set to resize in run-time.
>
>I also have a code in InteractiveEvent of the combobox to either set editbox height to cover to the bottom of the form (and make grid invisible) and or keep both controls visible.
>
>However, when I do so, and resize the form, the editbox gets resized by its original size, not by the new size I set in run-time.
>
>Do you know how to fix it?
>
>Thanks in advance.
>
>Update. I think I solved it.
Jim Nelson
Newbury Park, CA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform