X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fe03e62800b03e60af4abf21a665cdf487755a47..7256e9b6ad4bc899d7c4d1d70e7afc93965200f1:/src/motif/spinbutt.cpp diff --git a/src/motif/spinbutt.cpp b/src/motif/spinbutt.cpp index a84d1f38dd..9b978d0e14 100644 --- a/src/motif/spinbutt.cpp +++ b/src/motif/spinbutt.cpp @@ -210,6 +210,7 @@ bool wxArrowButton::Create( wxSpinButton* parent, } parent->AddChild( this ); + PreCreation(); Widget parentWidget = (Widget) parent->GetClientWidget(); m_mainWidget = (WXWidget) XtVaCreateManagedWidget( "XmArrowButton", @@ -230,11 +231,10 @@ bool wxArrowButton::Create( wxSpinButton* parent, XmNactivateCallback, (XtCallbackProc) StopTimerCallback, (XtPointer) this ); + PostCreation(); AttachWidget( parent, m_mainWidget, (WXWidget) NULL, pos.x, pos.y, size.x, size.y ); - SetForegroundColour( parent->GetBackgroundColour() ); - return true; } @@ -352,7 +352,7 @@ void wxSpinButton::Increment( int delta ) event.SetPosition( npos ); event.SetEventObject( this ); - GetEventHandler()->ProcessEvent( event ); + HandleWindowEvent( event ); if( event.IsAllowed() ) { @@ -360,7 +360,7 @@ void wxSpinButton::Increment( int delta ) event.SetEventType( wxEVT_SCROLL_THUMBTRACK ); event.SetPosition( m_pos ); - GetEventHandler()->ProcessEvent( event ); + HandleWindowEvent( event ); } }