Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Center objects after screen resize
Message
From
26/03/2010 19:43:22
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01457548
Message ID:
01457551
Views:
58
Hi Jim,

you could put all your form objects into a container and set all those object's anchor property to zero. All you have to do now, is to center the container by filling its anchor value.

>Is there an easy way to keep all objects on a form as is but centered on the form after the _screen.height and _screen.width changes?
>I've tried all the anchor types but none of them will act on all the objects as if they were one object. Currently I have to code the new location for each object based on the new _screen size.
>Tired fingers, Colombo.
Best Regards
-Tom

Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.

Oh, and BTW: 010101100100011001010000011110000101001001101111011000110110101101110011
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform