I don't think I ever saw anyone post the requested formulae for sizing the form relative to the resolution.
If your topform (or _SCREEN) is maximized, it's:
this.top = (topform.height-this.height)/2
this.left = (topform.width-this.width)/2
If not maximized, you need to use SYSMETRIC calls instead of topform or _SCREEN properties.
Sorry if someone else posted the formulae and I missed it.
>>Jan. 1999, FoxPro Advisor has an article about resizing forms. The author registers only those controls that he wishes to resize.
>
>Unfortunately, our subscription ran out Dec 98 and my boss can't decide if she's going to renew or not. After working on it a while, the best thing I came up with is to squish the forms down to 640/480, so that's what I did. They're not as pretty, but they work.
HTH,
Rich Addison, Micro Vane, Inc., Kalamazoo, MI
Relax, don't worry, have a homebrew.
- Charlie Papazian, The New Complete Joy of Home Brewing