I’m trying to use the dragging method of the MouseEvent, but with no
success.
Here is the code:
require ‘rubygems’
require ‘wx’
include Wx
class MyApp < App
def on_init
@frame = Frame.new(nil,-1, “Wx”, DEFAULT_POSITION,
Size.new(200,200))
evt_left_down() { | event | drag(event)}
@frame.show
end
def drag(event)
puts event.dragging
end
end
app = MyApp.new.main_loop
I always return false, even when i’m draging the mouse.
I don’t know what is wrong.
Any help?
Thanks