WindowBorderSize(), WindowHeightOutside() and update HELP

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Tenaja
Addict
Addict
Posts: 1959
Joined: Tue Nov 09, 2010 10:15 pm

WindowBorderSize(), WindowHeightOutside() and update HELP

Post by Tenaja »

The OpenWindow help file says the sizes are the InnerWidth and InnerHeight.
'InnerWidth' and 'InnerHeight' specify the required client area (without borders and window decorations)...
ResizeWindow or WindowHeight does not state this too!!!
Move and resize the given window to the given position and size.
PLEASE update the Help file for newbies; it is not clear as written. I am now aware of this, but anybody who just reads the Help file will wonder why setting it to the DesktopHeight() will not match.

Also, please add WindowBorderSize(), WindowHeightOutside() and WindowWidthOutside().

Currently, I can't find where the help file tells how to get the OuterWidth or OuterHeight, or the "border and window decorations" sizes to use for math. It looks like Windows API calls are required to figure it out, and I hate using non-PB commands.

Thanks.
Last edited by Tenaja on Fri Mar 16, 2012 3:31 pm, edited 1 time in total.
User avatar
skywalk
Addict
Addict
Posts: 4211
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: WindowBorderSize(), WindowHeightOutside() and update HEL

Post by skywalk »

Maybe GetSystemMetrics will help?
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
User avatar
Tenaja
Addict
Addict
Posts: 1959
Joined: Tue Nov 09, 2010 10:15 pm

Re: WindowBorderSize(), WindowHeightOutside() and update HEL

Post by Tenaja »

I got it figured out with GetWindowRect_(), which gives the outer dimensions, but this does not work with Mac or Linux.
Post Reply