// headers
// ----------------------------------------------------------------------------
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "univcheckbox.h"
#endif
void wxCheckBox::Init()
{
- m_isPressed = FALSE;
+ m_isPressed = false;
m_status = Status_Unchecked;
}
const wxString &name)
{
if ( !wxControl::Create(parent, id, pos, size, style, validator, name) )
- return FALSE;
+ return false;
SetLabel(label);
SetBestSize(size);
CreateInputHandler(wxINP_HANDLER_CHECKBOX);
- return TRUE;
+ return true;
}
// ----------------------------------------------------------------------------
{
if ( !m_isPressed )
{
- m_isPressed = TRUE;
+ m_isPressed = true;
Refresh();
}
{
if ( m_isPressed )
{
- m_isPressed = FALSE;
+ m_isPressed = false;
Refresh();
}
void wxCheckBox::Toggle()
{
- m_isPressed = FALSE;
+ m_isPressed = false;
ChangeValue(!GetValue());
}
else if ( action == wxACTION_BUTTON_RELEASE )
Release();
if ( action == wxACTION_CHECKBOX_CHECK )
- ChangeValue(TRUE);
+ ChangeValue(true);
else if ( action == wxACTION_CHECKBOX_CLEAR )
- ChangeValue(FALSE);
+ ChangeValue(false);
else if ( action == wxACTION_CHECKBOX_TOGGLE )
Toggle();
else
return wxControl::PerformAction(action, numArg, strArg);
- return TRUE;
+ return true;
}
// ----------------------------------------------------------------------------