This is the base class for all scriptable window
classes.
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::maximize( )
Maximize a window.
Example:
$win->maximize();
Synopsis: XMWindow::minimize( )
Minimize a window.
Example:
$win->minimize();
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);
Synopsis: XMWindow::setTitle( title )
Set the windows caption to title.
Example:
$win->setTitle("A nice Window");
Synopsis: XMWindow::show( )
Show the window if it's hidden. On creation
windows are hidden by default
Example:
$win->show();