]> git.saurik.com Git - wxWidgets.git/blobdiff - src/palmos/radiobut.cpp
Optimize wxGTK2 wxTextCtrl::GetLineText
[wxWidgets.git] / src / palmos / radiobut.cpp
index e18998576201bbd10a8616d1e64b49fd8ad6b48a..f210bcdd976bf318a72a04179ee1c3c730563c51 100644 (file)
@@ -36,6 +36,8 @@
     #include "wx/dcscreen.h"
 #endif
 
+#include <Control.h>
+
 // ============================================================================
 // wxRadioButton implementation
 // ============================================================================
@@ -103,6 +105,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxRadioButton, wxControl)
 void wxRadioButton::Init()
 {
     m_radioStyle = pushButtonCtl;
+    m_groupID = 0;
 }
 
 bool wxRadioButton::Create(wxWindow *parent,
@@ -126,10 +129,16 @@ bool wxRadioButton::Create(wxWindow *parent,
                           m_radioStyle == checkboxCtl ? checkboxCtl : pushButtonCtl,
                           label,
                           pos,
-                          size
+                          size,
+                          m_groupID
                       );
 }
 
+void wxRadioButton::SetGroup(uint8_t group)
+{
+    m_groupID = group;
+}
+
 // ----------------------------------------------------------------------------
 // wxRadioButton functions
 // ----------------------------------------------------------------------------