Support multiline strings in wxDC::DrawRotatedText() in wxMSW.

The native API doesn't support this, so do it by splitting the string into
lines manually.

Closes #9686.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75750 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2014-01-31 19:33:53 +00:00
parent 17a5323672
commit 0a86fd0f4f
4 changed files with 53 additions and 26 deletions

View File

@@ -827,6 +827,10 @@ void MyCanvas::DrawText(wxDC& dc)
y += height;
dc.DrawText("And\nmore\ntext on\nmultiple\nlines", 110, y);
y += 5*height;
dc.SetTextForeground(*wxBLUE);
dc.DrawRotatedText("Rotated text\ncan have\nmultiple lines\nas well", 110, y, 15);
}
static const struct