]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/radiobox.cpp
generic wxListCtrl colour/font setting
[wxWidgets.git] / src / os2 / radiobox.cpp
index 6048148d4acc4be20e84e81214cfba4049b09c2f..0ea23cc0628556ec28a9fcd6ea9b5cb5a293f5d5 100644 (file)
@@ -143,14 +143,17 @@ 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
         const wxValidator& val, const wxString& name)
+#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();