]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/gauge.cpp
Changes to WXDLLEXPORT keyword position for VC++ 6.0; changed
[wxWidgets.git] / src / motif / gauge.cpp
index 81d9d65c10d8853ca26fa59be1d1db1ee7c3d6ea..d47c8d976a7b686323b176094b5aa9622d9a0172 100644 (file)
@@ -123,10 +123,12 @@ bool wxGauge::Create(wxWindow *parent, wxWindowID id,
     if (height == -1)
         height = 80;
 
+    m_windowFont = parent->GetFont();
+    ChangeFont(FALSE);
+
     SetCanAddEventHandler(TRUE);
     AttachWidget (parent, m_mainWidget, (WXWidget) NULL, x, y, width, height);
 
-    SetFont(* parent->GetFont());
     ChangeBackgroundColour();
 
     return TRUE;
@@ -188,9 +190,9 @@ int wxGauge::GetValue() const
 //    return m_gaugePos;
 }
 
-void wxGauge::ChangeFont()
+void wxGauge::ChangeFont(bool keepOriginalSize)
 {
-    wxWindow::ChangeFont();
+    wxWindow::ChangeFont(keepOriginalSize);
 }
 
 void wxGauge::ChangeBackgroundColour()