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.
Client width and height
-
- Always Here
- Posts: 6426
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: Client width and height
Code: Select all
Width = WindowWidth(#Window) : Height = WindowHeight(#Window)
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.
Re: Client width and height
The PanelGaget and ScrollAreaGadget containers already allow retrieving the width and height of the client area. You have to use GetGadgetAttribute().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.