1. many DrawRotatedText() corrections (gtk)

2. compilation fix for window.cpp (!HAVE_XIM)
3. mentioned wxGTK slider limitations in the docs


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4866 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1999-12-08 08:19:45 +00:00
parent c717373949
commit 9a8c762076
8 changed files with 201 additions and 140 deletions

View File

@@ -212,7 +212,7 @@ void MyCanvas::DrawTestLines( int x, int y, int width, wxDC &dc )
{
dc.SetPen( wxPen( "black", width, wxSOLID) );
dc.SetBrush( *wxRED_BRUSH );
dc.DrawRectangle( x+10, y+10, 110, 190 );
dc.DrawRectangle( x+10, y+10, 100, 190 );
dc.SetPen( wxPen( "black", width, wxSOLID) );
dc.DrawLine( x+20, y+20, 100, y+20 );
@@ -276,10 +276,15 @@ void MyCanvas::OnPaint(wxPaintEvent &WXUNUSED(event))
dc.FloodFill(0, 0, wxColour(255, 0, 0));
#endif //
// 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.SetFont( *wxNORMAL_FONT );
wxString text;
dc. SetBackgroundMode(wxSOLID);
dc. SetBackgroundMode(wxTRANSPARENT);
for ( int n = -180; n < 180; n += 30 )
{