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:
parent
7ebc60b1fe
commit
506b51cae5
@ -162,6 +162,8 @@ void MyApp::Draw(wxDC&dc)
|
||||
|
||||
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
|
||||
const char *test = "Hebrew שלום -- Japanese (日本語)";
|
||||
wxString tmp = wxConvUTF8.cMB2WC( test );
|
||||
@ -249,6 +251,7 @@ void MyApp::Draw(wxDC&dc)
|
||||
delete gc;
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user