// Author: AUTHOR
// Modified by: JS Lair (99/11/15) adding the cyclic group notion for radiobox
// Created: ??/??/98
-// RCS-ID: $Id: radiobut.cpp 54129 2008-06-11 19:30:52Z SC $
+// RCS-ID: $Id$
// Copyright: (c) AUTHOR
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#include "wx/radiobut.h"
#include "wx/osx/private.h"
-IMPLEMENT_DYNAMIC_CLASS(wxRadioButton, wxControl)
-
-
bool wxRadioButton::Create( wxWindow *parent,
wxWindowID id,
const wxString& label,
bool wxRadioButton::GetValue() const
{
- return m_peer->GetValue();
+ return m_peer->GetValue() != 0;
}
void wxRadioButton::Command(wxCommandEvent& event)
ProcessCommand( event );
}
-bool wxRadioButton::HandleClicked( double timestampsec )
+bool wxRadioButton::OSXHandleClicked( double WXUNUSED(timestampsec) )
{
if ( !m_peer->ButtonClickDidStateChange() )
{
}
void wxRadioButton::RemoveFromCycle()
-{
+{
if ((m_cycle == NULL) || (m_cycle == this))
return;