Adapted wxGTK to wxMSW's notion of region setting.

Made Julian's gc_include_inferior hack a bit less radical.
  Small addition to changes.txt,
  Compile fix to dbbrowse sample. Still crashes upon startup.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6432 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2000-03-04 09:24:17 +00:00
parent 36bec0acf0
commit 993f97eed6
5 changed files with 85 additions and 27 deletions

View File

@@ -897,14 +897,18 @@ void MyCanvas::DrawRegions(wxDC& dc)
dc.SetPen( *wxTRANSPARENT_PEN );
dc.DrawRectangle( 10,10,310,310 );
wxRegion region( 20,20,100,270 );
dc.SetClippingRegion( region );
dc.SetClippingRegion( 20,20,100,270 );
dc.SetBrush( *wxRED_BRUSH );
dc.DrawRectangle( 10,10,310,310 );
dc.SetClippingRegion( 20,20,100,100 );
region = wxRegion( 120,30,100,270 );
dc.SetClippingRegion( region );
dc.SetBrush( *wxCYAN_BRUSH );
dc.DrawRectangle( 10,10,310,310 );
dc.DestroyClippingRegion();
dc.SetClippingRegion( 120,30,100,270 );
dc.SetBrush( *wxGREY_BRUSH );
dc.DrawRectangle( 10,10,310,310 );