Displaying 1 result from an estimated 1 matches for "next_imag".
Did you mean:
next_image
2003 Nov 25
1
Does wxRuby have event masks or something similar?
...om samples/etc/test.rb):
def initialize(title)
super(nil, -1, title, Wx::Point.new(-1,-1), Wx::Size.new(530,590),
Wx::DEFAULT_FRAME_STYLE | Wx::FRAME_SHAPED)
evt_paint { onPaint }
evt_char { | evt |
puts "Got char evt: "+evt.to_s
if evt.get_key_code.chr =~ /\s/
next_image
end
}
@bitmap = nil
@file = nil
end
(I''ve added the constant for Wx::FRAME_SHAPED to try and allow resizing
programtically. Doesn''t seem to work, but that''s a seperate issue).
I''m using a class based on Kevin''s image/png sample t...