Displaying 2 results from an estimated 2 matches for "myimageframe".
Did you mean:
  fximageframe
  
2004 Feb 02
0
the sample
..."Olyan langesz vagyok, hogy  |
| Mobil:(+36 20) 356 9656 ICQ: 175564914   poroltoval kellene jarnom" |
+-- 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 = PaintD...
2004 Jan 08
3
pictorG
...ee = Tree(label, children) | Object (where Object is String...)
class Tree
  attr_reader :label, :children
  def initialize label, children=nil
    @label, @children = label, children
  end
end
THM_HEIGHT=THM_WIDTH=128
#========================================================================
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()}
    ev...