Back to the Packages
Constructor
new Win32::GUI::Button(PARENT, %OPTIONS)
Methods
SetImage(BITMAP)
Events
Click()
DblClick()
GotFocus()
LostFocus()
MouseDown()
MouseUp()
Creates a new Button object; can also be called as PARENT->AddButton(%OPTIONS). Class specific %OPTIONS are:
-align => left/center/right (default left) -valign => top/center/bottom -default => 0/1 (default 0) -ok => 0/1 (default 0) -cancel => 0/1 (default 0) -bitmap => Win32::GUI::Bitmap object -picture => see -bitmap -icon => Win32::GUI::Icon object
Draws the specified BITMAP, a Win32::GUI::Bitmap or Win32::GUI::Icon object, in the Button.
Sent when the control is selected (eg. the button pushed, the checkbox checked, etc.).
DblClick() Sent when the user double clicks on the control. GotFocus() Sent when the control is activated. LostFocus() Sent when the control is deactivated. MouseDown() Sent when the user down clicks on the control. MouseUp() Sent when the user releases a down click on the control.
Sent when the user double clicks on the control.
GotFocus() Sent when the control is activated. LostFocus() Sent when the control is deactivated. MouseDown() Sent when the user down clicks on the control. MouseUp() Sent when the user releases a down click on the control.
Sent when the control is activated.
LostFocus() Sent when the control is deactivated. MouseDown() Sent when the user down clicks on the control. MouseUp() Sent when the user releases a down click on the control.
Sent when the control is deactivated.
MouseDown() Sent when the user down clicks on the control. MouseUp() Sent when the user releases a down click on the control.
Sent when the user down clicks on the control.
MouseUp() Sent when the user releases a down click on the control.
Sent when the user releases a down click on the control.
3 POD Errors
The following errors were encountered while parsing the POD:
You can't have =items (as at line 71) unless the first thing after the =over is an =item
You can't have =items (as at line 96) unless the first thing after the =over is an =item
You can't have =items (as at line 111) unless the first thing after the =over is an =item
To install Win32::GUI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Win32::GUI
CPAN shell
perl -MCPAN -e shell install Win32::GUI
For more information on module installation, please visit the detailed CPAN module installation guide.