]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/gauge.cpp
Fixed player dialog listbox size and app icon on wxGTK
[wxWidgets.git] / src / motif / gauge.cpp
index c809994fbce97ab2ef5feb6534afa2666d8ab593..4ccdf87265d359bc8bccf2375a231e8e9411fdbb 100644 (file)
@@ -109,6 +109,7 @@ bool wxGauge::Create(wxWindow *parent, wxWindowID id,
 {
     if( !CreateControl( parent, id, pos, size, style, validator, name ) )
         return false;
+    PreCreation();
 
     Widget parentWidget = (Widget) parent->GetClientWidget();
 
@@ -147,13 +148,10 @@ bool wxGauge::Create(wxWindow *parent, wxWindowID id,
     if( size.x != wxDefaultCoord ) best.x = size.x;
     if( size.y != wxDefaultCoord ) best.y = size.y;
 
-    ChangeFont(false);
-
+    PostCreation();
     AttachWidget (parent, m_mainWidget, (WXWidget) NULL, x, y,
                   best.x, best.y);
 
-    ChangeBackgroundColour();
-
     return true;
 }