Problem in wxBitmap and wxStaticBitmap

Roger Zavala <[email protected]> Tue, 4 Oct 2005 10:40:08 -0400
Newsgroups gmane.comp.lib.wxwindows.wxnet
Message-ID <[email protected]>
Hi to All (and Mr. Robert Roebling),

I was using in wxNet 0.62 with the code:
 wx.MemoryDC myClientDC = *new *wx.*MemoryDC*();
wx.Bitmap b = *new *wx.*Bitmap*(400, 400, 72);
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 );
*this*.myStaticBitmap.Bitmap = b;
myClientDC.*SelectObject*( wx.NullObjects.wxNullBitmap );
myClientDC.*Dispose*();

And this work fine (draw a rectangle in a Bitmap and dispaly this in a
StaticBitmap).
But in the wx.net <http://wx.net> version 0.72 the same code
don't display the Rectangle in the StaticBitmap. I use the idea
from wxNullBitmap in the SelectObject, but equal don't work.

Somebody know what i am doing bad?