Don't override DoGetBestSize() in wxGenericStaticText, it's unnecessary.

The base class already does exactly the same thing -- except that it also
accounts for the borders properly.

Also fix access for a couple of DoXXX() member functions which should be
protected and an event handler which can be private.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62821 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-12-08 15:56:21 +00:00
parent d7d943a71c
commit f26c1c3e4a
2 changed files with 3 additions and 11 deletions

View File

@@ -82,14 +82,6 @@ wxSize wxGenericStaticText::DoGetBestClientSize() const
return wxSize(width, height);
}
wxSize wxGenericStaticText::DoGetBestSize() const
{
wxSize ret = DoGetBestClientSize();
CacheBestSize(ret);
return ret;
}
void wxGenericStaticText::SetLabel(const wxString& label)
{
wxControl::SetLabel(label);