[wxruby-users] drag_accept_files undefined in 1.9.8 (mingw32)

Alex Fenton alex at pressure.to
Tue Sep 9 06:55:18 EDT 2008


Zhimin Zhan wrote:
> I got "undefined method 'drag_accept_files' for Wx::Frame"
>
> The doc
> (http://wxruby.rubyforge.org/doc/window.html#Window_dragacceptfiles)
> indicates it's available on Windows.
>   

Thanks for reporting this. It's not in our SVN. We could add it, but the 
wxWidgets docs suggest it's

1) Windows only
2) Based on an older Windows system

http://docs.wxwidgets.org/2.8.6/wx_wxdropfilesevent.html

You should already be able to drag/drop files using DropFileTarget (take 
a look at samples/dragdrag/dragdrop.rb)

If you think there is something that drag_accept_files would add to the 
more general drag/drop features already available, let me know, 
otherwise I will delete references to this from the docs.

cheers
alex





More information about the wxruby-users mailing list