Demonstrate drawing text with tab characters

This commit is contained in:
Artur Wieczorek 2019-12-10 22:01:05 +01:00
parent 7b8cdd441d
commit 1d744026f2

View File

@ -985,6 +985,11 @@ void MyCanvas::DrawText(wxDC& dc)
dc.SetTextForeground(*wxBLUE);
dc.DrawRotatedText("Rotated text\ncan have\nmultiple lines\nas well", 110, y, 15);
y += 7*height;
dc.SetFont(wxFontInfo(12).Family(wxFONTFAMILY_TELETYPE));
dc.SetTextForeground(wxColour(150, 75, 0));
dc.DrawText("And some text with tab characters:\n123456789012345678901234567890\n\taa\tbbb\tcccc", 10, y);
}
static const struct