]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/stattext.cpp
moved DoApplyWidgetStyle to wxWindowGTK
[wxWidgets.git] / src / msw / stattext.cpp
index ad7ef96d15385f3fcde57f89ee2d03360f13a078..02d4e44b50d9504304ac40b654273d0835ef8b02 100644 (file)
@@ -207,31 +207,5 @@ void wxStaticText::DoSetSize(int x, int y, int w, int h, int sizeFlags)
     Refresh();
 }
 
-void wxStaticText::SetLabel(const wxString& label)
-{
-    wxStaticTextBase::SetLabel(label);
-
-    // adjust the size of the window to fit to the label unless autoresizing is
-    // disabled
-    if ( !(GetWindowStyle() & wxST_NO_AUTORESIZE) )
-    {
-        DoSetSize(-1, -1, -1, -1, wxSIZE_AUTO_WIDTH | wxSIZE_AUTO_HEIGHT);
-    }
-}
-
-
-bool wxStaticText::SetFont(const wxFont& font)
-{
-    bool ret = wxControl::SetFont(font);
-
-    // adjust the size of the window to fit to the label unless autoresizing is
-    // disabled
-    if ( !(GetWindowStyle() & wxST_NO_AUTORESIZE) )
-    {
-        DoSetSize(-1, -1, -1, -1, wxSIZE_AUTO_WIDTH | wxSIZE_AUTO_HEIGHT);
-    }
-
-    return ret;
-}
 
 #endif // wxUSE_STATTEXT