-// SetValidator( validator );
-
- m_oldPos = 0.0;
-
- m_adjust = (GtkAdjustment*) gtk_adjustment_new( 0.0, 0.0, 100.0, 1.0, 5.0, 0.0);
-
- m_widget = gtk_spin_button_new( m_adjust, 0, 0 );
-
- gtk_spin_button_set_wrap( GTK_SPIN_BUTTON(m_widget), (m_windowStyle & wxSP_WRAP) );
-
- gtk_signal_connect( GTK_OBJECT (m_adjust),
- "value_changed",
- (GtkSignalFunc) gtk_spinbutt_callback,
- (gpointer) this );
+ if (!PreCreation( parent, pos, new_size ) ||
+ !CreateBase( parent, id, pos, new_size, style, wxDefaultValidator, name ))
+ {
+ wxFAIL_MSG( wxT("wxSpinButton creation failed") );
+ return false;
+ }