Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I change the screen location of a form
Message
From
15/04/2009 12:16:55
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
15/04/2009 00:17:42
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01394894
Message ID:
01395003
Views:
62
>that works nicely. is there col/row control over locationy - raising it a couple of rows for example?

For both .left and .top the principle is the same, if you want to center them manually, i.e. without employing .autocenter property. They need to be half of the difference between your form's own width (or height) and the width of whatever you center it in, which may be a parent MDI form, _screen, desktop (did I miss anything?).

You can then nudge the result a few dozen pixels one way or the other.

this.top=(_screen.height-this.height)/2-40

...assuming that a standard textbox is about 20 pixels high... so 40 pix up should be close. You may want to try other ways to move your form around, just to get the hang of it.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform