Win32::GUI packages
Animation
The Animation control displays an AVI animation. To load an AVI file you can use the Open() method; you can then use Play() to start the animation (note it will start automatically with the -autoplay option), Stop() to stop it and Seek() to position it to a specified frame.
Options: -autoplay, -center, -name, -pos, -size, -text, -transparent
Methods: AbsLeft, AbsTop, ChangeCursor, Close, Disable, Enable, GetClassName, GetClientRect, GetFont, GetFontName, GetTextExtentPoint32, GetWindowRect, IsEnabled, IsVisible, IsWindow, Move, Open, Play, ScaleHeight, ScaleWidth, Seek, Stop
Button
x
Options: -align, -bitmap, -cancel, -default, -icon, -name, -ok, -picture, -pos, -size, -text, -valign
Methods: AbsLeft, AbsTop, ChangeCursor, Disable, Enable, GetClassName, GetClientRect, GetFont, GetFontName, GetTextExtentPoint32, GetWindowRect, IsEnabled, IsVisible, IsWindow, Move, ScaleHeight, ScaleWidth
Checkbox
x
Options: -name, -pos, -size, -text
Methods: AbsLeft, AbsTop, ChangeCursor, Disable, Enable, GetClassName, GetClientRect, GetFont, GetFontName, GetTextExtentPoint32, GetWindowRect, IsEnabled, IsVisible, IsWindow, Move, ScaleHeight, ScaleWidth
Class
x
Options: -name
Methods: AbsLeft, AbsTop, ChangeCursor, Disable, Enable, GetClassName, GetClientRect, GetWindowRect
Combobox
x
Options: -name, -pos, -size, -text
Methods: AbsLeft, AbsTop, Add, AddString, ChangeCursor, Count, Disable, Enable, FindString, FindStringExact, FirstVisibleItem, GetClassName, GetClientRect, GetFont, GetFontName, GetTextExtentPoint32, GetWindowRect, IsEnabled, IsVisible, IsWindow, Move, Reset, ScaleHeight, ScaleWidth, SelectedItem
ComboboxEx
x
Options: -name, -pos, -size, -text
Methods: AbsLeft, AbsTop, ChangeCursor, Disable, Enable, GetClassName, GetClientRect, GetFont, GetFontName, GetTextExtentPoint32, GetWindowRect, IsEnabled, IsVisible, IsWindow, Move, ScaleHeight, ScaleWidth
DateTime
x
Options: -name, -pos, -size, -text
Methods: AbsLeft, AbsTop, ChangeCursor, Disable, Enable, GetClassName, GetClientRect, GetFont, GetFontName, GetTextExtentPoint32, GetWindowRect, IsEnabled, IsVisible, IsWindow, Move, ScaleHeight, ScaleWidth
DialogBox
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).
Options: -accel, -accelerators, -acceleratortable, -background, -caption, -font, -foreground, -height, -hscroll, -left, -maxheight, -maximizebox, -maxsize, -maxwidth, -menu, -minheight, -minimizebox, -minsize, -minwidth, -name, -pos, -sizable, -size, -sysmenu, -text, -title, -top, -topmost, -vscroll, -width
Methods: AbsLeft, AbsTop, BringWindowToTop, ChangeCursor, ChangeIcon, ChangeSmallIcon, CloseWindow, Disable, DrawMenuBar, Enable, GetClassName, GetClientRect, GetFont, GetFontName, GetMenu, GetTextExtentPoint32, GetWindowRect, IsEnabled, IsIconic, IsVisible, IsWindow, IsZoomed, Move, OpenIcon, ScaleHeight, ScaleWidth
Graphic
x
Options: -name, -pos, -size, -text
Methods: AbsLeft, AbsTop, ChangeCursor, Disable, Enable, GetClassName, GetClientRect, GetFont, GetFontName, GetTextExtentPoint32, GetWindowRect, IsEnabled, IsVisible, IsWindow, Move, ScaleHeight, ScaleWidth
Groupbox
x
Options: -name, -pos, -size, -text
Methods: AbsLeft, AbsTop, ChangeCursor, Disable, Enable, GetClassName, GetClientRect, GetFont, GetFontName, GetTextExtentPoint32, GetWindowRect, IsEnabled, IsVisible, IsWindow, Move, ScaleHeight, ScaleWidth
Header
x
Options: -buttons, -name, -pos, -size, -text
Methods: AbsLeft, AbsTop, ChangeCursor, Disable, Enable, GetClassName, GetClientRect, GetFont, GetFontName, GetTextExtentPoint32, GetWindowRect, IsEnabled, IsVisible, IsWindow, Move, ScaleHeight, ScaleWidth
Label
x
Options: -align, -bitmap, -fill, -frame, -name, -notify, -picture, -pos, -size, -sunken, -text, -truncate, -wrap
Methods: AbsLeft, AbsTop, ChangeCursor, Disable, Enable, GetClassName, GetClientRect, GetFont, GetFontName, GetTextExtentPoint32, GetWindowRect, IsEnabled, IsVisible, IsWindow, Move, ScaleHeight, ScaleWidth
ListView
x
Options: -name, -pos, -size, -text
Methods: AbsLeft, AbsTop, Arrange, ChangeCursor, Disable, Enable, EnsureVisible, GetClassName, GetClientRect, GetFont, GetFontName, GetStringWidth, GetTextExtentPoint32, GetWindowRect, HitTest, IsEnabled, IsVisible, IsWindow, ItemCheck, ItemPosition, Move, MoveItem, ScaleHeight, ScaleWidth, SelectCount, View, VisibleCount
Listbox
x
Options: -multisel, -name, -pos, -size, -sort, -text
Methods: AbsLeft, AbsTop, Add, AddString, ChangeCursor, Count, Disable, Enable, FindString, FindStringExact, FirstVisibleItem, GetClassName, GetClientRect, GetFont, GetFontName, GetTextExtentPoint32, GetWindowRect, IsEnabled, IsVisible, IsWindow, ItemFromPoint, Move, Reset, ScaleHeight, ScaleWidth, SelectCount, SelectedItem, SelectString
ProgressBar
x
Options: -name, -pos, -size, -smooth, -text, -vertical
Methods: AbsLeft, AbsTop, ChangeCursor, Disable, Enable, GetClassName, GetClientRect, GetFont, GetFontName, GetTextExtentPoint32, GetWindowRect, IsEnabled, IsVisible, IsWindow, Move, ScaleHeight, ScaleWidth, SetRange
RadioButton
x
Options: -name, -pos, -size, -text, -valign
Methods: AbsLeft, AbsTop, ChangeCursor, Disable, Enable, GetClassName, GetClientRect, GetFont, GetFontName, GetTextExtentPoint32, GetWindowRect, IsEnabled, IsVisible, IsWindow, Move, ScaleHeight, ScaleWidth
Rebar
x
Options: -bandborders, -fixedorder, -name, -pos, -size, -text
Methods: AbsLeft, AbsTop, BandCount, ChangeCursor, DeleteBand, Disable, Enable, GetClassName, GetClientRect, GetFont, GetFontName, GetTextExtentPoint32, GetWindowRect, InsertBand, IsEnabled, IsVisible, IsWindow, Move, RowCount, ScaleHeight, ScaleWidth
RichEdit
x
Options: -align, -autohscroll, -autovscroll, -keepselection, -lowercase, -multiline, -name, -number, -password, -passwordchar, -pos, -prompt, -readonly, -size, -text, -uppercase
Methods: AbsLeft, AbsTop, BackColor, ChangeCursor, Disable, Enable, GetClassName, GetClientRect, GetFont, GetFontName, GetTextExtentPoint32, GetWindowRect, IsEnabled, IsVisible, IsWindow, LineFromChar, Load, MaxLength, Modified, Move, PasswordChar, ReadOnly, ReplaceSel, Save, ScaleHeight, ScaleWidth, Scroll, SelectAll, Selection, Undo
Slider
x
Options: -name, -pos, -size, -text
Methods: AbsLeft, AbsTop, ChangeCursor, Disable, Enable, GetClassName, GetClientRect, GetFont, GetFontName, GetTextExtentPoint32, GetWindowRect, IsEnabled, IsVisible, IsWindow, Move, ScaleHeight, ScaleWidth
Splitter
x
Options: -name, -pos, -size, -text
Methods: AbsLeft, AbsTop, ChangeCursor, Disable, Enable, GetClassName, GetClientRect, GetFont, GetFontName, GetTextExtentPoint32, GetWindowRect, IsEnabled, IsVisible, IsWindow, Move, ScaleHeight, ScaleWidth
StatusBar
x
Options: -name, -pos, -size, -text
Methods: AbsLeft, AbsTop, ChangeCursor, Disable, Enable, GetClassName, GetClientRect, GetFont, GetFontName, GetTextExtentPoint32, GetWindowRect, IsEnabled, IsVisible, IsWindow, Move, ScaleHeight, ScaleWidth
TabStrip
x
Options: -bottom, -buttons, -flat, -hottrack, -imagelist, -justify, -multiline, -name, -pos, -right, -size, -text, -vertical
Methods: AbsLeft, AbsTop, ChangeCursor, Disable, Enable, GetClassName, GetClientRect, GetFont, GetFontName, GetTextExtentPoint32, GetWindowRect, IsEnabled, IsVisible, IsWindow, Move, ScaleHeight, ScaleWidth
Textfield
x
Options: -align, -autohscroll, -autovscroll, -keepselection, -lowercase, -multiline, -name, -number, -password, -passwordchar, -pos, -prompt, -readonly, -size, -text, -uppercase
Methods: AbsLeft, AbsTop, ChangeCursor, Disable, Enable, GetClassName, GetClientRect, GetFont, GetFontName, GetTextExtentPoint32, GetWindowRect, IsEnabled, IsVisible, IsWindow, LineFromChar, MaxLength, Modified, Move, PasswordChar, ReadOnly, ReplaceSel, ScaleHeight, ScaleWidth, Scroll, SelectAll, Selection, Undo
Timer
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 the Kill() method. Note that Kill(), despite of its name, does not destroy the Timer object, so you can re-enable it later with Interval().
Example:
# creates a Timer that is called every 1 second
$Window->AddTimer( "Clock", 1000 );
sub Clock_Timer {
print "one second passed.\n";
}
Events: Timer
Toolbar
x
Methods: AbsLeft, AbsTop, ChangeCursor, Disable, Enable, GetClassName, GetClientRect, GetFont, GetFontName, GetTextExtentPoint32, GetWindowRect, IsEnabled, IsVisible, IsWindow, Move, ScaleHeight, ScaleWidth
Tooltip
x
TreeView
x
Options: -buttons, -name, -pos, -size, -text
Methods: AbsLeft, AbsTop, ChangeCursor, Disable, Enable, EnsureVisible, Expand, FirstVisible, GetClassName, GetClientRect, GetFont, GetFontName, GetLastVisible, GetNextVisible, GetPrevVisible, GetTextExtentPoint32, GetWindowRect, HitTest, Indent, IsEnabled, IsVisible, IsWindow, ItemCheck, Move, ScaleHeight, ScaleWidth, VisibleCount
UpDown
x
Options: -name, -pos, -size, -text, -wrap
Methods: AbsLeft, AbsTop, ChangeCursor, Disable, Enable, GetClassName, GetClientRect, GetFont, GetFontName, GetTextExtentPoint32, GetWindowRect, IsEnabled, IsVisible, IsWindow, Move, ScaleHeight, ScaleWidth
Window
This is the main container of a regular GUI; also known as "top level window".
Options: -accel, -accelerators, -acceleratortable, -background, -caption, -font, -foreground, -height, -hscroll, -left, -maxheight, -maximizebox, -maxsize, -maxwidth, -menu, -minheight, -minimizebox, -minsize, -minwidth, -name, -pos, -sizable, -size, -sysmenu, -text, -title, -top, -topmost, -vscroll, -width
Methods: AbsLeft, AbsTop, BringWindowToTop, ChangeCursor, ChangeIcon, ChangeSmallIcon, CloseWindow, Disable, DrawMenuBar, Enable, GetClassName, GetClientRect, GetFont, GetFontName, GetMenu, GetTextExtentPoint32, GetWindowRect, IsEnabled, IsIconic, IsVisible, IsWindow, IsZoomed, Move, OpenIcon, ScaleHeight, ScaleWidth