Page 1 of 1
Client width and height
Posted: Sat Dec 08, 2012 4:54 am
by wombats
Could we please have functions to retrieve the client/inner width and height of gadgets and windows? This would be useful, for example, when using a container. We could easily size gadgets inside the container without having to worry about the border sizes, which can differ.
Maybe something like...
GadgetInnerWidth()
GadgetInnerHeight()
WindowInnerWidth()
WindowInnerHeight()
Thanks for considering this.
Re: Client width and height
Posted: Sat Dec 08, 2012 5:29 am
by IdeasVacuum
Code: Select all
Width = WindowWidth(#Window) : Height = WindowHeight(#Window)
On Windows OS, that is the Window Client Area (inner area, i.e. excluding border/Title Bar)
Re: Client width and height
Posted: Sat Dec 08, 2012 7:06 pm
by Demivec
wombats wrote:Could we please have functions to retrieve the client/inner width and height of gadgets and windows? This would be useful, for example, when using a container. We could easily size gadgets inside the container without having to worry about the border sizes, which can differ.
The PanelGaget and ScrollAreaGadget containers already allow retrieving the width and height of the client area. You have to use GetGadgetAttribute().