Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Resizing for resolution
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00180295
Message ID:
00180844
Views:
18
Oops, that's for centering. I'll crawl back under my rock, now. :)

>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
Previous
Reply
Map
View

Click here to load this message in the networking platform