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:
@@ -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
|
||||
|
Reference in New Issue
Block a user