- virtual bool MSWCommand(WXUINT param, WXWORD id);
- virtual WXHBRUSH OnCtlColor(WXHDC pDC, WXHWND pWnd, WXUINT nCtlColor,
- WXUINT message, WXWPARAM wParam, WXLPARAM lParam);
-
- int FindString(const wxString& s) const;
- void SetSelection(int N);
- int GetSelection() const;
- wxString GetString(int N) const;
-
- void GetSize(int *x, int *y) const;
- void GetPosition(int *x, int *y) const;
-
- wxString GetLabel() const;
- void SetLabel(const wxString& label);
- void SetLabel(int item, const wxString& label);
- void SetLabel(int item, wxBitmap *bitmap);
- wxString GetLabel(int item) const;
- bool Show(bool show);
- void SetFocus();
- void Enable(bool enable);
- void Enable(int item, bool enable);
- void Show(int item, bool show);
- void SetLabelFont(const wxFont& WXUNUSED(font)) {};
+ ~wxRadioBox();
+
+ bool Create(wxWindow *parent,
+ wxWindowID id,
+ const wxString& title,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ int n = 0, const wxString choices[] = NULL,
+ int majorDim = 0,
+ long style = wxRA_HORIZONTAL,
+ const wxValidator& val = wxDefaultValidator,
+ const wxString& name = wxRadioBoxNameStr);
+ bool Create(wxWindow *parent,
+ wxWindowID id,
+ const wxString& title,
+ const wxPoint& pos,
+ const wxSize& size,
+ const wxArrayString& choices,
+ int majorDim = 0,
+ long style = wxRA_HORIZONTAL,
+ const wxValidator& val = wxDefaultValidator,
+ const wxString& name = wxRadioBoxNameStr);
+
+ // implement the radiobox interface
+ virtual void SetSelection(int n);
+ virtual int GetSelection() const { return m_selectedButton; }
+ virtual int GetCount() const;
+ virtual wxString GetString(int n) const;
+ virtual void SetString(int n, const wxString& label);
+ virtual bool Enable(int n, bool enable = true);
+ virtual bool Show(int n, bool show = true);
+ virtual bool IsItemEnabled(int n) const;
+ virtual bool IsItemShown(int n) const;
+
+ // override some base class methods
+ virtual bool Show(bool show = true);
+ virtual bool Enable(bool enable = true);
+ virtual void SetFocus();
+ virtual bool SetFont(const wxFont& font);
+ virtual bool ContainsHWND(WXHWND hWnd) const;
+
+ // we inherit a version returning false from wxStaticBox, override it again
+ virtual bool AcceptsFocus() const { return true; }
+
+ void SetLabelFont(const wxFont& WXUNUSED(font)) {}