X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/47df2b8c540f17c55464719d0da74c0b43a29515..d11e8786ed13b72766eea18cb577cc00f9f08f41:/include/wx/os2/radiobox.h diff --git a/include/wx/os2/radiobox.h b/include/wx/os2/radiobox.h index 8b1e97a9c0..955dc12e42 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,18 +83,26 @@ 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; - virtual bool Enable(bool bEnable = TRUE); - void Enable( int nItem - ,bool bEnable - ); + virtual bool Enable(bool bEnable = true); + virtual bool Enable(int nItem, bool bEnable = true); int FindString(const wxString& sStr) const; virtual WXHBRUSH OnCtlColor( WXHDC hDC @@ -87,10 +116,8 @@ public: ,WXWORD wId ); void SendNotificationEvent(void); - virtual void Show( int nItem - ,bool bShow = TRUE - ) ; - bool Show(bool bShow); + virtual bool Show(int nItem, bool bShow = true); + virtual bool Show(bool bShow = true); MRESULT WindowProc( WXUINT uMsg ,WXWPARAM wParam ,WXLPARAM lParam