Page 1 of 1

Window Inner/Client size

Posted: Fri Feb 09, 2007 6:03 pm
by Robbie
Hi,

I've searched the forums, and looked in the Help file, and unless I'm completely blind, I can't find anything about this.

How do you retrieve the height/width of the inner/client area of a window? All I can see are commands to retrieve the height/width of the actual window.

Thanks,
Robbie.

Posted: Fri Feb 09, 2007 6:07 pm
by Fluid Byte
PB Manual wrote:Result = OpenWindow(#Window, x, y, InnerWidth, InnerHeight, Title$ [, Flags [, ParentWindowID]])
The values you get are the inner width / height of the window. To verfiy that just open a window, make a screenshot of it and paste into Paint. If you now check the dimesnins of the image you will see that wider / higher than the width / height you specified because of the titlebar and border.

Posted: Fri Feb 09, 2007 6:15 pm
by Robbie
Now I feel like an idiot... :D Thank you for the fast reply!

Posted: Fri Feb 09, 2007 6:17 pm
by Fluid Byte
You're welcome! Image