search for: set_client_size_wh

Displaying 2 results from an estimated 2 matches for "set_client_size_wh".

2004 Feb 02
0
the sample
...ot; | +-- Magyar php mirror es magyar php dokumentacio: http://hu.php.net --+ -------------- next part -------------- #!/usr/bin/ruby require ''wxruby'' include Wx class MyImageFrame < Dialog def initialize parent, title, bmap super(parent, -1, title) @bitmap=bmap set_client_size_wh(@bitmap.get_width,@bitmap.get_height) evt_paint {|what| on_paint(what)} evt_left_down {on_click()} end def on_click close end def on_paint what dc = PaintDC.new(self) dc.draw_bitmap(@bitmap,0,0,true) end end class MyFrame < Wx::Frame def initialize(title) s...
2004 Jan 08
3
pictorG
...====================================================================== class MyImageFrame < Dialog # -- opens a dialog to show a picture def initialize parent, title, filename super(parent, -1, title) @bitmap=Bitmap.new(filename,BITMAP_TYPE_ANY) # why should I say BITMAP_TYPE_ANY? set_client_size_wh(@bitmap.get_width,@bitmap.get_height) evt_paint {on_paint()} evt_left_down {on_click()} end def on_click @bitmap.destroy() self.destroy() end def on_paint dc = PaintDC.new(self) dc.draw_bitmap(@bitmap,0,0,true) end end class Pictures < ListCtrl # -- show the...