added DrawRectangle() test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5655 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
19695fbd61
commit
4786aabdbd
@ -527,7 +527,7 @@ void MyCanvas::OnPaint(wxPaintEvent &WXUNUSED(event))
|
||||
// set underlined font for testing
|
||||
dc.SetFont( wxFont(12, wxMODERN, wxNORMAL, wxNORMAL, TRUE) );
|
||||
dc.DrawText( "This is text", 110, 10 );
|
||||
dc.DrawRotatedText( "That is text", 60, 30, -45 );
|
||||
dc.DrawRotatedText( "That is text", 20, 10, -45 );
|
||||
|
||||
dc.SetFont( *wxNORMAL_FONT );
|
||||
|
||||
@ -556,9 +556,16 @@ void MyCanvas::OnPaint(wxPaintEvent &WXUNUSED(event))
|
||||
text.Printf( "CharHeight() returns: %d", dc.GetCharHeight() );
|
||||
dc.DrawText( text, 110, 120 );
|
||||
|
||||
|
||||
dc.DrawIcon( wxICON(mondrian), 310, 40 );
|
||||
|
||||
// test the rectangle drawing - there should be no pixels between the rect
|
||||
// and the lines
|
||||
dc.SetPen(*wxTRANSPARENT_PEN);
|
||||
dc.DrawRectangle(350, 170, 49, 29);
|
||||
dc.SetPen(*wxRED_PEN);
|
||||
dc.DrawLine(400, 160, 400, 210);
|
||||
dc.DrawLine(340, 200, 410, 200);
|
||||
|
||||
DrawTestLines( 0, 200, 0, dc );
|
||||
|
||||
DrawTestLines( 0, 400, 1, dc );
|
||||
|
Loading…
Reference in New Issue
Block a user