]>
git.saurik.com Git - wxWidgets.git/blob - src/stubs/radiobut.cpp
   1 ///////////////////////////////////////////////////////////////////////////// 
   3 // Purpose:     wxRadioButton 
   8 // Copyright:   (c) AUTHOR 
   9 // Licence:     wxWindows licence 
  10 ///////////////////////////////////////////////////////////////////////////// 
  13 #pragma implementation "radiobut.h" 
  16 #include "wx/radiobut.h" 
  18 #if !USE_SHARED_LIBRARY 
  19 IMPLEMENT_DYNAMIC_CLASS(wxRadioButton
, wxControl
) 
  22 bool wxRadioButton::Create(wxWindow 
*parent
, wxWindowID id
, 
  23                    const wxString
& label
, 
  25            const wxSize
& size
, long style
, 
  26            const wxValidator
& validator
, 
  30     SetValidator(validator
); 
  32     if (parent
) parent
->AddChild(this); 
  35             m_windowId 
= (int)NewControlId(); 
  39     m_windowStyle 
= style 
; 
  41     // TODO create radiobutton 
  45 void wxRadioButton::SetLabel(const wxString
& label
) 
  50 void wxRadioButton::SetValue(bool value
) 
  55 // Get single selection, for single choice list items 
  56 bool wxRadioButton::GetValue() const 
  62 void wxRadioButton::Command (wxCommandEvent 
& event
) 
  64   SetValue ( (event
.m_commandInt 
!= 0) ); 
  65   ProcessCommand (event
);