Available options: -autoplay, -center, -transparent
x
x
x
x
x
Just like Window, but with a predefined dialog box look: by default, a DialogBox can not be sized, has no maximize box and has
-dialogui
enabled (eg. interprets tab/enter/esc).Available options: -text, -caption, -title, -left, -top, -width, -height, -menu, -font, -foreground, -background, -hscroll, -vscroll, -size, -pos, -minsize, -maxsize, -minwidth, -minheight, -maxwidth, -maxheight, -topmost, -maximizebox, -minimizebox, -sizable, -sysmenu, -accel, -accelerators, -acceleratortable
x
x
x
x
x
x
x
x
x
The Timer object is a special kind of control: it has no appearance, its only purpose is to trigger an event every specified amount of time.
The synopsis to create a Timer object is:
new Win32::GUI::Timer( PARENT, NAME, ELAPSE )
PARENT->AddTimer( NAME, ELAPSE )
- NAME
the name for the Timer object (used to lookup the associated event).
- ELAPSE
the number of milliseconds after which the
Timer()
event will be triggered.Once you've created the Timer object, you can change the ELAPSE parameter with the
Interval()
method, or disables it with theKill()
method. Note thatKill(),
despite of its name, does not destroy the Timer object, so you can re-enable it later withInterval().
Example:
# creates a Timer that is called every 1 second $Window->AddTimer( "Clock", 1000 );
sub Clock_Timer { print "one second passed.\n"; }
x
x
x
x
This is the main container of a regular GUI; also known as ``top level window''.
Available options: -text, -caption, -title, -left, -top, -width, -height, -menu, -font, -foreground, -background, -hscroll, -vscroll, -size, -pos, -minsize, -maxsize, -minwidth, -minheight, -maxwidth, -maxheight, -topmost, -maximizebox, -minimizebox, -sizable, -sysmenu, -accel, -accelerators, -acceleratortable