Add drawing a multi-line text to the printing sample
This can be helpful in testing API to draw multi-line texts. See #17798.
This commit is contained in:
@@ -162,6 +162,8 @@ void MyApp::Draw(wxDC&dc)
|
|||||||
|
|
||||||
dc.DrawText( wxT("Test message: this is in 10 point text"), 10, 180);
|
dc.DrawText( wxT("Test message: this is in 10 point text"), 10, 180);
|
||||||
|
|
||||||
|
dc.DrawRotatedText( wxS("This\nis\na multi-line\ntext"), 170, 100, -m_angle/1.5);
|
||||||
|
|
||||||
#if wxUSE_UNICODE
|
#if wxUSE_UNICODE
|
||||||
const char *test = "Hebrew שלום -- Japanese (日本語)";
|
const char *test = "Hebrew שלום -- Japanese (日本語)";
|
||||||
wxString tmp = wxConvUTF8.cMB2WC( test );
|
wxString tmp = wxConvUTF8.cMB2WC( test );
|
||||||
@@ -249,6 +251,7 @@ void MyApp::Draw(wxDC&dc)
|
|||||||
delete gc;
|
delete gc;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user