]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/radiobox.cpp
Replaced an old ifndef FWD_ONLY_CURSORS with the new wxODBC_FWD_ONLY_CURSORS setup...
[wxWidgets.git] / src / os2 / radiobox.cpp
index 6048148d4acc4be20e84e81214cfba4049b09c2f..43bcd15f5e95a680fe63a4df3e064be843e0955d 100644 (file)
@@ -143,14 +143,21 @@ bool wxRadioBox::Create(wxWindow *parent, wxWindowID id, const wxString& title,
         const wxPoint& pos, const wxSize& size,
         int n, const wxString choices[],
         int majorDim, long style,
+#if wxUSE_VALIDATORS
+#  if defined(__VISAGECPP__)
+        const wxValidator* val, const wxString& name)
+#  else
         const wxValidator& val, const wxString& name)
+#  endif
+#endif
 {
     m_selectedButton = -1;
     m_noItems = n;
 
     SetName(name);
+#if wxUSE_VALIDATORS
     SetValidator(val);
-
+#endif
     parent->AddChild(this);
     m_backgroundColour = parent->GetBackgroundColour();
     m_foregroundColour = parent->GetForegroundColour();