From: Pierre Baillet Date: 2003-04-17T05:28:22+09:00 Subject: Drag and drop sample in Fxruby --fUYQa+Pmc3FrFX/N Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Hello, i've once again faced one of these great mystery of life. How the hell is it possible to use drag and drop with fxruby ? I'm currently attempting to add drag and drop support to a well known native ruby editor and so far i've been unable to make my sample application even recognize i was dropping something on its head. Lyle, or anybody who knows, could you enlighten me with your knowledge ? Thanks a lot, -- Pierre Baillet Sauvez un arbre, mangez un castor --fUYQa+Pmc3FrFX/N Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: attachment; filename="drop_target.rb" require 'fox' include Fox class Renderer < Fox::FXMainWindow include Fox def initialize theApp super(theApp, "mooh", nil, nil, DECOR_ALL) connect(SEL_DND_DROP) { puts "drop" } connect(SEL_DND_ENTER) { puts "enter" } connect(SEL_DND_LEAVE) { puts "leave" } connect(SEL_DND_MOTION) { puts "motion" } end def create super dropEnable end end app = FXApp.new w = Renderer.new(app) app.create w.create w.show # this is the drag type of files under win32 app.registerDragType('text/uri-list') app.run --fUYQa+Pmc3FrFX/N--