X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/511ac294daea69d4bae9644db2fb272c712e059c..594ed110f77d9f29f7165a07bb806e5a4fa19b0e:/include/wx/os2/radiobox.h diff --git a/include/wx/os2/radiobox.h b/include/wx/os2/radiobox.h index 2e0f9af62f..9534ba0ba0 100644 --- a/include/wx/os2/radiobox.h +++ b/include/wx/os2/radiobox.h @@ -29,9 +29,7 @@ public: ,const wxString asChoices[] = NULL ,int nMajorDim = 0 ,long lStyle = wxRA_HORIZONTAL -#if wxUSE_VALIDATORS ,const wxValidator& rVal = wxDefaultValidator -#endif ,const wxString& rsName = wxRadioBoxNameStr ) { @@ -44,9 +42,32 @@ public: ,asChoices ,nMajorDim ,lStyle -#if wxUSE_VALIDATORS ,rVal -#endif + ,rsName + ); + } + + inline wxRadioBox( wxWindow* pParent + ,wxWindowID vId + ,const wxString& rsTitle + ,const wxPoint& rPos + ,const wxSize& rSize + ,const wxArrayString& asChoices + ,int nMajorDim = 0 + ,long lStyle = wxRA_HORIZONTAL + ,const wxValidator& rVal = wxDefaultValidator + ,const wxString& rsName = wxRadioBoxNameStr + ) + { + Create( pParent + ,vId + ,rsTitle + ,rPos + ,rSize + ,asChoices + ,nMajorDim + ,lStyle + ,rVal ,rsName ); } @@ -62,15 +83,25 @@ public: ,const wxString asChoices[] = NULL ,int nMajorDim = 0 ,long lStyle = wxRA_HORIZONTAL -#if wxUSE_VALIDATORS ,const wxValidator& rVal = wxDefaultValidator -#endif ,const wxString& rsName = wxRadioBoxNameStr ); + bool Create( wxWindow* pParent + ,wxWindowID vId + ,const wxString& rsTitle + ,const wxPoint& rPos + ,const wxSize& rSize + ,const wxArrayString& asChoices + ,int nMajorDim = 0 + ,long lStyle = wxRA_HORIZONTAL + ,const wxValidator& rVal = wxDefaultValidator + ,const wxString& rsName = wxRadioBoxNameStr + ); + void Command(wxCommandEvent& rEvent); bool ContainsHWND(WXHWND hWnd) const; - bool Enable(bool bEnable); + virtual bool Enable(bool bEnable = TRUE); void Enable( int nItem ,bool bEnable ); @@ -87,7 +118,7 @@ public: ,WXWORD wId ); void SendNotificationEvent(void); - void Show( int nItem + virtual void Show( int nItem ,bool bShow = TRUE ) ; bool Show(bool bShow);