Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Understanding anchor property
Message
 
 
To
25/05/2006 11:49:00
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01124568
Message ID:
01124918
Views:
7
>By the way, I've noticed that the Anchor property should be set *after* setting the initial size of the controls -- otherwise the controls "remember" the original size when the Anchor property was set and set the size accordingly.

I think that's the key to my troubles. I was able to solve the problem programmatically. I put 4 instances of my class in the container and didn't change their height in design time. Then in outer container Init I wrote
with this
	.anchor = 0
	.height = .height + 1
	.anchor = 15
	store 0 to .cntSort.anchor, .cntOutput.anchor, .cntFilter.anchor, .cntFilter1.anchor
	store 180 to .cntSort.height, .cntOutput.height, .cntFilter.height, .cntFilter1.height
	store 240 to .cntSort.anchor, .cntOutput.anchor, .cntFilter.anchor, .cntFilter1.anchor
endwith
and it worked.

It took me about an hour (or even more) to understand the basics, but now I set already several controls anchor property and have fun with it.

In fact, I was thinking about starting a new thread last night, but got distracted...

I'll do it later today.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform