X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fe03e62800b03e60af4abf21a665cdf487755a47..f968da288ee04ec5c0265861bb7a18182c0fb22e:/src/motif/spinbutt.cpp diff --git a/src/motif/spinbutt.cpp b/src/motif/spinbutt.cpp index a84d1f38dd..abee5b0bb6 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; }