Displaying 1 result from an estimated 1 matches for "verybigimagefile".
2004 Feb 02
0
the sample
...nt what
dc = PaintDC.new(self)
dc.draw_bitmap(@bitmap,0,0,true)
end
end
class MyFrame < Wx::Frame
def initialize(title)
super(nil, -1, title)
b=Button.new(self,-1,''e'')
evt_button(-1) { MyImageFrame.new(self, ''yeah'',Bitmap.new(''verybigimagefile'')).show }
end
end
class NothingApp < Wx::App
def OnInit
frame = MyFrame.new("Minimal wxRuby App")
frame.show
end
end
a = NothingApp.new
a.main_loop()