#endif
#include "wx/slider.h"
+
+#if wxUSE_SLIDER
+
#include "wx/utils.h"
#include <math.h>
m_acceptsFocus = TRUE;
m_needParent = TRUE;
- PreCreation( parent, id, pos, size, style, name );
-
- SetValidator( validator );
+ if (!PreCreation( parent, pos, size ) ||
+ !CreateBase( parent, id, pos, size, style, validator, name ))
+ {
+ wxFAIL_MSG( _T("wxSlider creation failed") );
+ return FALSE;
+ }
m_oldPos = 0.0;
SetWidgetStyle();
gtk_widget_set_style( m_widget, m_widgetStyle );
}
+
+#endif