Big Problem with StaticBitmap and MemoryDC
Roger Zavala <[email protected]> Wed, 5 Oct 2005 11:25:30 -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 and has wrote 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 (to draw a rectangle in a Bitmap and dispaly this in a StaticBitmap). But when I use 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?