- void OnPaint(wxPaintEvent&)
- {
- wxPaintDC dc(this);
-
- wxFont font = GetFont();
-
- for ( int size = 10; size < 20; size++ )
- {
- font.SetPixelSize(wxSize(0, size));
- dc.SetFont(font);
- dc.DrawText(wxString::Format("%dpx The quick brown fox jumps over the lazy dog.", size),
- 10, 10 + (size - 10)*20);
- }
- }
-
-