]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/spinbutt.cpp
make renderer independent of windowing system
[wxWidgets.git] / src / motif / spinbutt.cpp
index a84d1f38dd822bec74eaf937e49659b1cae619d3..abee5b0bb60db18527b15078ad6d32d256f73595 100644 (file)
@@ -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;
 }