Allow passing multi-line strings to wxDC::DrawText(), even under MSW.

Native wxMSW wxDC::DrawText() implementation doesn't support multi-line
strings so use the generic wxDC::DrawLabel() code instead. Drawing multi-line
strings now works at least in wxGTK and wxMSW, to be tested for the other
platforms.

Closes #12239.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65058 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2010-07-23 23:32:52 +00:00
parent 715e4f7e3e
commit a5bb451448
5 changed files with 28 additions and 2 deletions

View File

@@ -789,6 +789,9 @@ void MyCanvas::DrawText(wxDC& dc)
y += height;
dc.DrawRectangle( 110, y, 100, height );
dc.DrawText( wxT("Another visible text"), 110, y );
y += height;
dc.DrawText("And\nmore\ntext on\nmultiple\nlines", 110, y);
}
static const struct