]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/os2/radiobox.h
Reverted part of patch #876969 ("Fixes to Borland warnings"), resulted in bugs when...
[wxWidgets.git] / include / wx / os2 / radiobox.h
index 2e0f9af62f6ec1013e04b0e15ea214934ac1ab4c..9534ba0ba0fcd67b58e7d5dc7ad3a22e08e09f83 100644 (file)
@@ -29,9 +29,7 @@ public:
                       ,const wxString     asChoices[] = NULL
                       ,int                nMajorDim = 0
                       ,long               lStyle = wxRA_HORIZONTAL
                       ,const wxString     asChoices[] = NULL
                       ,int                nMajorDim = 0
                       ,long               lStyle = wxRA_HORIZONTAL
-#if wxUSE_VALIDATORS
                       ,const wxValidator& rVal = wxDefaultValidator
                       ,const wxValidator& rVal = wxDefaultValidator
-#endif
                       ,const wxString&    rsName = wxRadioBoxNameStr
                      )
     {
                       ,const wxString&    rsName = wxRadioBoxNameStr
                      )
     {
@@ -44,9 +42,32 @@ public:
                ,asChoices
                ,nMajorDim
                ,lStyle
                ,asChoices
                ,nMajorDim
                ,lStyle
-#if wxUSE_VALIDATORS
                ,rVal
                ,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
               );
     }
                ,rsName
               );
     }
@@ -62,15 +83,25 @@ public:
                 ,const wxString     asChoices[] = NULL
                 ,int                nMajorDim = 0
                 ,long               lStyle = wxRA_HORIZONTAL
                 ,const wxString     asChoices[] = NULL
                 ,int                nMajorDim = 0
                 ,long               lStyle = wxRA_HORIZONTAL
-#if wxUSE_VALIDATORS
                 ,const wxValidator& rVal = wxDefaultValidator
                 ,const wxValidator& rVal = wxDefaultValidator
-#endif
                 ,const wxString&    rsName = wxRadioBoxNameStr
                );
 
                 ,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;
     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
                            );
     void             Enable( int  nItem
                             ,bool bEnable
                            );
@@ -87,7 +118,7 @@ public:
                                 ,WXWORD wId
                                );
     void             SendNotificationEvent(void);
                                 ,WXWORD wId
                                );
     void             SendNotificationEvent(void);
-    void             Show( int  nItem
+    virtual void     Show( int  nItem
                           ,bool bShow =  TRUE
                          ) ;
     bool             Show(bool bShow);
                           ,bool bShow =  TRUE
                          ) ;
     bool             Show(bool bShow);