[wxruby-users] Black background using paint_buffered

Andreas Warberg lists at ruby-forum.com
Wed Apr 23 06:55:38 EDT 2008


Mario Steele wrote:
> pen = Wx::Pen.new(Wx::WHITE)
> brush = Wx::Brush.new()
> brush.colour(Wx::WHITE)
> 
> dc.set_pen(pen)
> dc.set_brush(brush)
> dc.draw_rectangle(0,0,self.width,self.height)
> 
> .... do your drawing here ....

Thanks for this workaround. I now have flicker free updates AND a white 
background :)

I'm looking forward to your update, Alex.

Thanks guys - I'm enjoying wxruby :)
-- 
Posted via http://www.ruby-forum.com/.


More information about the wxruby-users mailing list