X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3c299c3ab663257429983c24e6fb71450f3cf9f1..f014d4bf3e18198c273b3c119ad1a08d46d12c82:/include/wx/os2/radiobox.h diff --git a/include/wx/os2/radiobox.h b/include/wx/os2/radiobox.h index 0e6d7b022a..955dc12e42 100644 --- a/include/wx/os2/radiobox.h +++ b/include/wx/os2/radiobox.h @@ -12,8 +12,6 @@ #ifndef _WX_RADIOBOX_H_ #define _WX_RADIOBOX_H_ -WXDLLEXPORT_DATA(extern const char*) wxRadioBoxNameStr; - // List box item class WXDLLEXPORT wxBitmap ; @@ -31,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 ) { @@ -46,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 ); } @@ -64,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; - bool Enable(bool bEnable); - 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 @@ -89,10 +116,8 @@ public: ,WXWORD wId ); void SendNotificationEvent(void); - 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 @@ -115,12 +140,12 @@ public: void GetSize( int* pnX ,int* pnY ) const; - void GetSizeFlags(void) const; + inline int GetSizeFlags(void) const { return m_nSizeFlags; } void AdjustButtons( int nX ,int nY ,int nWidth ,int nHeight - ,int lSizeFlags + ,int nSizeFlags ); wxString GetString(int nIndex) const; virtual wxString GetStringSelection(void) const; @@ -146,12 +171,6 @@ public: protected: - void AdjustButtons( int nX - ,int nY - ,int nWidth - ,int nHeight - ,long lSizeFlags - ); virtual wxSize DoGetBestSize(void) const; virtual void DoSetSize( int nX ,int nY