Problem in wxBitmap and wxStaticBitmap

Roger Zavala <[email protected]> Mon, 3 Oct 2005 17:23:03 -0400
Newsgroups gmane.comp.lib.wxwindows.wxnet
Message-ID <[email protected]>
Hi, this code run on the old version:

 wx.MemoryDC myClientDC = new wx.MemoryDC();

wx.Bitmap b  = new wx.Bitmap(400, 400);

myClientDC.SelectObject( b );

myClientDC.Clear();

myClientDC.Pen  = new wx.Pen( wx.Colour.wxBLACK, 2, wx.FillStyle.wxDEFAULT);

myClientDC.Brush  = new wx.Brush( wx.Colour.wxCYAN, wx.FillStyle.wxSOLID );

myClientDC.DrawRectangle( 10, 10, 200, 200 );

myClientDC.Dispose();

this.myStaticBitmap = new wx.StaticBitmap( this, -1, b);

 In the new version, the same code don't display de bitmap on the
StaticBitmap,

Some change in the api unknowdlege?