Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Anchor for two editboxes
Message
 
 
To
18/03/2015 13:06:43
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:
01616840
Message ID:
01616939
Views:
37
>>Hi Hugo,
>>
>>I may have found what is causing the problem I have with Anchor in Edit Boxes. My edit boxes are pretty "short"; the Height is 64.
>>Your example uses edit box of height 200. If, in your example, I change the height of the edit boxes to 64, the anchor does not work correctly. That is, I see that the two edit boxes grow but NOT proportionally.
>>Please, if you have time, test it and see if you get the same results.
>>
>>Thank you.
>
>Not sure how you're changing the Height, but be aware that if you make any changes to an object's size or position programmatically, you need to set Anchor to 0 beforehand and reset it to the desired value after.
>
>Tamar

I was setting the Height at design time, in the code example Hugo created. And with the Height set to 64 I was getting different results than when I would set Height to 200.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform