-bool wxSpinButton::Create(wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxSize& size,
- long style, const wxString& name)
-{
- m_needParent = TRUE;
-
- wxSize new_size = size;
- new_size.x = 16;
- if (new_size.y == -1) new_size.y = 30;
-
- PreCreation( parent, id, pos, new_size, style, name );
-
-// 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 );
-
- m_parent->AddChild( this );
-
- (m_parent->m_insertCallback)( m_parent, this );
-
- PostCreation();
-
- SetBackgroundColour( parent->GetBackgroundColour() );
-
- Show( TRUE );
-
- return TRUE;
-}
-
-wxSpinButton::~wxSpinButton()