]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/spinbutt.cpp
use a common m_isInsideYield flag instead of static booleans in all ports; add a...
[wxWidgets.git] / src / motif / spinbutt.cpp
index a84d1f38dd822bec74eaf937e49659b1cae619d3..9b978d0e14604997fa58817b94176bf84ea96400 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;
 }
 
@@ -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 );
     }
 }