Package Win32::GUI::Checkbox

Back to the Packages

Constructor

new Win32::GUI::Checkbox(PARENT, %OPTIONS)

Creates a new Checkbox object; can also be called as PARENT->AddCheckbox(%OPTIONS). %OPTIONS are the same of Button (see new Win32::GUI::Button() ).

Methods

Checked([VALUE])

Gets or sets the check state of the Checkbox; if called without arguments, returns the current state:

0 not checked
1 checked
2 indeterminate (grayed)

If a VALUE is specified, it can be one of these (eg. 0 to uncheck the Checkbox, 1 to check it).

GetCheck()

Returns the check state of the Checkbox:

0 not checked
1 checked
2 indeterminate (grayed)

SetCheck([VALUE])

Sets the check state of the Checkbox; for a list of possible values, see GetCheck(). If called without arguments, it checks the Checkbox (eg. state = 1).

Events

Click()

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.

3 POD Errors

The following errors were encountered while parsing the POD:

Around line 75:

You can't have =items (as at line 79) unless the first thing after the =over is an =item

Around line 91:

You can't have =items (as at line 95) unless the first thing after the =over is an =item

Around line 135:

You can't have =items (as at line 139) unless the first thing after the =over is an =item