Window Inner/Client size

Just starting out? Need help? Post your questions and find answers here.
Robbie
User
User
Posts: 10
Joined: Fri Nov 11, 2005 9:57 am

Window Inner/Client size

Post 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.
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Post 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.
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
Robbie
User
User
Posts: 10
Joined: Fri Nov 11, 2005 9:57 am

Post by Robbie »

Now I feel like an idiot... :D Thank you for the fast reply!
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Post by Fluid Byte »

You're welcome! Image
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
Post Reply