This is the base class for all scriptable window classes.
close | getPositionX | getPositionY |
getSizeX | getSizeY | isValid |
lower | maximize | minimize |
move | raise | resize |
setTitle | show |
Synopsis: XMWindow::close( ) Close and a window. On destruction a window is closed automagically. Example: $win->close(); # is equivalent to $win = undef; # if $win is the only reference to # the window and you don't use $win # afterwards $win2 = $win; # now there's the difference # 1. possibility $win->close(); statusWindow()->print($win2->isValid()); # will show false # 2. possibility $win = undef; statusWindow()->print($win2->isValid()); # will show true
Synopsis: XMWindow::getPositionX( ) Get the x coordinate of the window's position. See also XMWindow::move. Example: $x = $win->getPositionX()
Synopsis: XMWindow::getPositionY( ) Get the y coordinate of the window's position. See also XMWindow::move. Example: $y = $win->getPositionY();
Synopsis: XMWindow::getSizeX( ) Get the window's width. See also XMWindow::resize. Example: $width = $win->getSizeX();
Synopsis: XMWindow::getSizeY( ) Get the window's height. See also XMWindow::resize. Example: height = $win->getSizeY();
Synopsis: XMWindow::isValid( ) True if this window has not been closed. See XMWindow::close for more info.
Synopsis: XMWindow::lower( ) Lower a window to the background, so other windows behind it will become visible. Example: $win->lower();
Synopsis: XMWindow::move( x, y ) Move the window's left upper corner to the point (x, y) relative to the MDI Widget. x and y are pixel values. Example: $win->move(0, 0);
Synopsis: XMWindow::raise( ) Raise this window to the top, so it will become visible if other windows are in front of it. Example: $win->raise();
Synopsis: XMWindow::resize( width, height ) Resize the window to width and height. The variables are given in pixels. Example: $win->resize(300, 100);