Fix to allow wxShapeRegion to display text, from George Seally

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17734 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2002-11-05 23:08:31 +00:00
parent 8f5c320767
commit 8c3de19796

View File

@@ -136,7 +136,8 @@ class wxShapeRegion: public wxObject
~wxShapeRegion();
// Accessors
inline void SetText(const wxString& s) { m_regionText = s; }
inline void SetText(const wxString& s)
{ m_regionText = s; m_formattedText.Append(new wxShapeTextLine(0,0,s));}
void SetFont(wxFont *f);
void SetMinSize(double w, double h);
void SetSize(double w, double h);