Client windows dimensions

Is it possible to get the current client’s window/container dimensions? I’m looking to auto locate and size open pop-up windows if the client window is resized or docked windows are opened and the available space for pop-ups changes.

Cheers,
Clint.

I’m using this to show window dimensions in the label:

window = system.gui.getParentWindow(event) windowWidth= window.size.width windowHeight = window.size.height #print windowWidth, windowHeight system.gui.getParentWindow(event).getComponentForPath('Root Container.lblDimension').text = "(" + str(windowWidth) + ", " + str(windowHeight) + ")"
[attachment=0]Capture.PNG[/attachment]

Note: this will get the size of the window that the button is contained in. If you have docked windows mixed with floating windows, if won’t be the full size of all of these combined.