/////////////////////////////////////////////////////////////////////////////
-// Name: univ/radiobut.cpp
+// Name: src/univ/radiobut.cpp
// Purpose: wxRadioButton implementation
// Author: Vadim Zeitlin
// Modified by:
// headers
// ----------------------------------------------------------------------------
-#ifdef __GNUG__
- #pragma implementation "univradiobut.h"
-#endif
-
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#if wxUSE_RADIOBTN
+#include "wx/radiobut.h"
+
#ifndef WX_PRECOMP
#include "wx/dcclient.h"
- #include "wx/radiobut.h"
#include "wx/validate.h"
#endif
// implementation
// ============================================================================
-IMPLEMENT_DYNAMIC_CLASS(wxRadioButton, wxControl)
-
// ----------------------------------------------------------------------------
// wxRadioButton
// ----------------------------------------------------------------------------
const wxString &name)
{
if ( !wxCheckBox::Create(parent, id, label, pos, size, style,
- wxDefaultValidator, name) )
+ validator, name) )
{
- return FALSE;
+ return false;
}
- return TRUE;
+ return true;
}
// ----------------------------------------------------------------------------
{
if ( IsChecked() )
{
- SetValue(FALSE);
+ SetValue(false);
}
}
}
#endif // wxUSE_RADIOBTN
-