"windowGeometry"

This attribute holds the geometry of the window excluding the window frame.

Synopsis

this.windowGeometry(int x, int y, int width, int height);

Parameter

Parameter Description
x x position of the window
y y position of the window
width Window width
height Window height

Description

This attribute holds the geometry of the window excluding the window frame. It can be used to move or resize the window.

Can also be changed via the animate() function. In this case the four values must be stated as dyn_int element.

Cannot be used if the panel is located in an embedded moduel.

For a child panel the coordinates are relative to the parent panel.

If the geometry is queried before the panel is visible, the returned values are not correct as these values are asynchronously set by the window manager after the window is positioned, etc.

Example

main()
{
  this.windowGeometry(0, 0, 400, 200);
}

Assignment

Panel