<HTML>
<HEAD>
<TITLE>Package Win32::GUI::Checkbox</TITLE>
<LINK REV="made" HREF="mailto:">
</HEAD>
<BODY>
<!-- INDEX BEGIN -->
<!--
<UL>
<UL>
<LI><A HREF="#Package_Win32_GUI_Checkbox">Package Win32::GUI::Checkbox</A>
<UL>
<LI><A HREF="#Constructor">Constructor</A>
<LI><A HREF="#Methods">Methods</A>
<LI><A HREF="#Events">Events</A>
</UL>
</UL>
</UL>
-->
<!-- INDEX END -->
<P>
<H2><A NAME="Package_Win32_GUI_Checkbox">Package Win32::GUI::Checkbox</A></H2>
<P>
<A HREF="././guipacks.html#">Back to the Packages</A>
<UL>
<LI>
<P>
<A HREF="#Constructor">Constructor</A>
<UL>
<LI>
<P>
<A HREF="#new_Win32_GUI_Checkbox_PARENT_">new Win32::GUI::Checkbox(PARENT, %OPTIONS)</A>
</UL>
<LI>
<P>
<A HREF="#Methods">Methods</A>
<UL>
<LI>
<P>
<A HREF="#Checked_VALUE_">Checked([VALUE])</A>
<LI>
<P>
<A HREF="#GetCheck_">GetCheck()</A>
<LI>
<P>
<A HREF="#SetCheck_VALUE_">SetCheck([VALUE])</A>
</UL>
<LI>
<P>
<A HREF="#Events">Events</A>
<UL>
<LI>
<P>
<A HREF="#Click_">Click()</A>
<LI>
<P>
<A HREF="#DblClick_">DblClick()</A>
<LI>
<P>
<A HREF="#GotFocus_">GotFocus()</A>
<LI>
<P>
<A HREF="#LostFocus_">LostFocus()</A>
<LI>
<P>
<A HREF="#MouseDown_">MouseDown()</A>
<LI>
<P>
<A HREF="#MouseUp_">MouseUp()</A>
</UL>
</UL>
<P>
<HR>
<H3><A NAME="Constructor">Constructor</A></H3>
<A NAME="new_Win32_GUI_Checkbox_PARENT_">
<DL>
<DT><STRONG><A NAME="item_new">new Win32::GUI::Checkbox(PARENT, %OPTIONS)</A></STRONG><DD>
<P>
Creates a new Checkbox object; can also be called as
PARENT->AddCheckbox(%OPTIONS). <CODE>%OPTIONS</CODE> are the same of
Button (see <A HREF="././Button.html#new_Win32_GUI_Button_PARENT_">new Win32::GUI::Button()</A> ).
<P>
</DL>
<P>
<HR>
<H3><A NAME="Methods">Methods</A></H3>
<A NAME="Checked_VALUE_">
<DL>
<DT><STRONG><A NAME="item_Checked">Checked([VALUE])</A></STRONG><DD>
<P>
Gets or sets the check state of the Checkbox; if called without arguments,
returns the current state:
<P>
<PRE> 0 not checked
1 checked
2 indeterminate (grayed)
</PRE>
<P>
If a VALUE is specified, it can be one of these (eg. 0 to uncheck the
Checkbox, 1 to check it).
<P>
<A NAME="GetCheck_">
<DT><STRONG><A NAME="item_GetCheck">GetCheck()</A></STRONG><DD>
<P>
Returns the check state of the Checkbox:
<P>
<PRE> 0 not checked
1 checked
2 indeterminate (grayed)
</PRE>
<P>
<A NAME="SetCheck_VALUE_">
<DT><STRONG><A NAME="item_SetCheck">SetCheck([VALUE])</A></STRONG><DD>
<P>
Sets the check state of the Checkbox; for a list of possible values, see <A HREF="#GetCheck_">GetCheck()</A>. If called without arguments, it checks the Checkbox (eg. state = 1).
<P>
</DL>
<P>
<HR>
<H3><A NAME="Events">Events</A></H3>
<A NAME="Click_">
<DL>
<DT><STRONG><A NAME="item_Click">Click()</A></STRONG><DD>
<P>
Sent when the control is selected (eg. the button pushed, the checkbox
checked, etc.).
<P>
<A NAME="DblClick_">
<DT><STRONG><A NAME="item_DblClick">DblClick()</A></STRONG><DD>
<P>
Sent when the user double clicks on the control.
<P>
<A NAME="GotFocus_">
<DT><STRONG><A NAME="item_GotFocus">GotFocus()</A></STRONG><DD>
<P>
Sent when the control is activated.
<P>
<A NAME="LostFocus_">
<DT><STRONG><A NAME="item_LostFocus">LostFocus()</A></STRONG><DD>
<P>
Sent when the control is deactivated.
<P>
<A NAME="MouseDown_">
<DT><STRONG><A NAME="item_MouseDown">MouseDown()</A></STRONG><DD>
<P>
Sent when the user down clicks on the control.
<P>
<A NAME="MouseUp_">
<DT><STRONG><A NAME="item_MouseUp">MouseUp()</A></STRONG><DD>
<P>
Sent when the user releases a down click on the control.
<P>
</DL>
</BODY>
</HTML>