Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Screen size

Status
Not open for further replies.

Thmemuar

Programmer
Sep 23, 2002
8
CA
Hi.

I've set my main form (top-level) to be maximized. The user can close or minimize it, but not otherwise resize it (intentional).

But the bottom of the form doesn't stop at the Windows status bar. So when I generate a preview and then minimize the preview, the minimized icon 'disappears' under the status bar. If I move the status bar to get to it, the form fills the space previously occupied by the status bar, so I still can't get at the minimized preview.

Isn't there a way of telling my form to be maximized at most normal resolutions, but not stretch under the status bar?

Thanks.
 
Thmemuar

Try this in the init of the form instead of maximizing. Although top-level maximize would mean it covers the taskbar, otherwise it wouldn't be top-level

this.Height =SYSMETRIC(2)
this.Width=SYSMETRIC(1)
Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first
 
Thanks Mike.

SYSMETRIC(2) seems to have the same limitation, but SYSMETRIC(22) expands only to the status bar.

 
Thmemuar

SYSMETRIC(2) seems to have the same limitation, but SYSMETRIC(22) expands only to the status bar.

Whatever works for you :)



Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top