+wxRadioButton *wxRadioBox::GetRadioButton(int i) const
+{
+ return (wxRadioButton *)m_radios.Get(i);
+}
+
+void wxRadioBox::DoGetPosition( int *x, int *y ) const
+{
+ *x = m_pos.x;
+ *y = m_pos.y;
+}
+
+void wxRadioBox::DoGetSize( int *width, int *height ) const
+{
+ *width = m_size.x;
+ *height = m_size.y;
+}
+
+void wxRadioBox::DoMoveWindow(int x, int y, int width, int height)
+{
+ wxRect oldRect = GetRect();
+
+ m_pos.x = x;
+ m_pos.y = y;
+ m_size.x = width;
+ m_size.y = height;
+
+ const bool use_cols = HasFlag(wxRA_SPECIFY_COLS);
+
+ const unsigned int n = GetCount();
+ unsigned int minor = n / GetMajorDim();
+ if(n % GetMajorDim() > 0)
+ minor++;
+
+ unsigned int i = 0;
+ for ( unsigned int j = 0; j < minor; j++ )
+ {
+ for ( unsigned int k = 0; k < GetMajorDim(); k++ )
+ {
+ if(i<n)
+ {
+ wxPoint start, end;
+ start.x = (use_cols ? (k*m_size.x)/GetMajorDim() : (j*m_size.x)/minor);
+ start.y = (use_cols ? (j*m_size.y)/minor : (k*m_size.y)/GetMajorDim());
+ end.x = (use_cols ? ((k+1)*m_size.x)/GetMajorDim() : ((j+1)*m_size.x)/minor);
+ end.y = (use_cols ? ((j+1)*m_size.y)/minor : ((k+1)*m_size.y)/GetMajorDim());
+ wxRadioButton* rb = GetRadioButton(i);
+ if(rb)
+ {
+ rb->SetSize(start.x,start.y,end.x-start.x-1,end.y-start.y-1);
+ }
+ i++;
+ }
+ }
+ }
+
+ // refresh old and new area
+ GetParent()->RefreshRect(oldRect.Union(GetRect()));
+}
+
+// get the origin of the client area in the client coordinates
+wxPoint wxRadioBox::GetClientAreaOrigin() const
+{
+ return GetPosition();
+}
+
+void wxRadioBox::SetString(unsigned int item, const wxString& label)