add wxGenericStaticText (#9656)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56242 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
// implementation
|
||||
// ============================================================================
|
||||
|
||||
IMPLEMENT_ABSTRACT_CLASS(wxStaticText, wxControl)
|
||||
IMPLEMENT_ABSTRACT_CLASS(wxStaticText, wxGenericStaticText)
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// creation
|
||||
@@ -62,21 +62,6 @@ bool wxStaticText::Create(wxWindow *parent,
|
||||
return true;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// size management
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
wxSize wxStaticText::DoGetBestClientSize() const
|
||||
{
|
||||
wxStaticText *self = wxConstCast(this, wxStaticText);
|
||||
wxClientDC dc(self);
|
||||
dc.SetFont(GetFont());
|
||||
wxCoord width, height;
|
||||
dc.GetMultiLineTextExtent(GetLabel(), &width, &height);
|
||||
|
||||
return wxSize(width, height);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// drawing
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user