A folded integer value, representing the outer window's bounding height (hi) and width (low) in gui units
Function GuiWindowSize Returns Integer
Call: | Get GuiWindowSize to IntegerVariable |
This returns an object's window bounding size as a folded value. This is the outer size of the window. The height is returned as the Hi value and the width is returned as the Low value.
This function returns a folded integer value.
When the value of the property is retrieved, the value of these two properties is returned as a folded integer. The value of these parameters can be accessed using the hi() and low() functions.
Get GuiWindowSize of oView to iSize Move (Hi(iSize)) to iY // outer height Move (Low(iSize)) to iX // outer width
This value is independent of pbSizeToClientArea. When pbSizeToClientArea is false, GuiSize will also return this value.
When sizing and locating child objects it is best to work with the client area size (GuiClientSize) instead of the outer window bounding size (GuiWindowSize)
This function can be used when an object is paged or not paged. When paged, the value is acquired from the actual window object. When not-paged, the value is calculated based on Windows system metrics. These two values should always be the same, but it is possible they will not. For example, skinning might create borders sizes that are different than the Windows system metrics. In such a case, the pre-page value of GuiWindowSize may differ from the paged value. In such cases, it is always better to get the value of GuiWindowSize after the window object has been paged (created).
GuiClientSize | GuiToDialog | DialogToGui | GuiSize | pbSizeToClientArea