# Drag\_accept\_files undefined in 1.9.8 (mingw32)

**URL:** <https://www.ruby-forum.com/t/drag-accept-files-undefined-in-1-9-8-mingw32/148111>\
**Category:** wxRuby\
**Created:** [September 9, 2008, 12:46pm UTC](https://www.ruby-forum.com/t/drag-accept-files-undefined-in-1-9-8-mingw32/148111 "2008-09-09T12:46:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zzhan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/7cd45c/32.png) [@zzhan](https://www.ruby-forum.com/u/zzhan)\
**Post date:** [September 9, 2008, 12:46pm UTC](https://www.ruby-forum.com/t/drag-accept-files-undefined-in-1-9-8-mingw32/148111/1 "2008-09-09T12:46:13Z")

</div>

Hi,

I got “undefined method ‘drag\_accept\_files’ for Wx::Frame”

The doc  
([http://wxruby.rubyforge.org/doc/window.html#Window\_dragacceptfiles](http://wxruby.rubyforge.org/doc/window.html#Window_dragacceptfiles))  
indicates it’s available on Windows.

Thanks,  
Zhimin

---

<div class="post-metadata">

**Author:** ![zzhan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/7cd45c/32.png) [@zzhan](https://www.ruby-forum.com/u/zzhan)\
**Post date:** [September 9, 2008, 12:57pm UTC](https://www.ruby-forum.com/t/drag-accept-files-undefined-in-1-9-8-mingw32/148111/2 "2008-09-09T12:57:26Z")

</div>

Zhimin Z. wrote:

> I got “undefined method ‘drag\_accept\_files’ for Wx::Frame”
> 
> The doc  
> ([http://wxruby.rubyforge.org/doc/window.html#Window\_dragacceptfiles](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](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

---

<div class="post-metadata">

**Author:** ![zzhan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/7cd45c/32.png) [@zzhan](https://www.ruby-forum.com/u/zzhan)\
**Post date:** [September 10, 2008, 12:32am UTC](https://www.ruby-forum.com/t/drag-accept-files-undefined-in-1-9-8-mingw32/148111/3 "2008-09-10T00:32:37Z")

</div>

Alex F. wrote:

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

That’s exactly what I wanted, Thanks!

Regards,  
Zhimin

---

<div class="post-metadata">

**Author:** ![zzhan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/7cd45c/32.png) [@zzhan](https://www.ruby-forum.com/u/zzhan)\
**Post date:** [September 10, 2008, 7:58pm UTC](https://www.ruby-forum.com/t/drag-accept-files-undefined-in-1-9-8-mingw32/148111/4 "2008-09-10T19:58:10Z")

</div>

I’m trying to track down a mysterious crash that has cropped up in my  
WxRuby  
app. It occurs only after I call set\_size to reduce the size of my  
Frame.  
The message I get when it crashes is: “This application has requested  
the  
Runtime to terminate it in an unusual way. Please contact the  
application’s  
support team for more information.”, which I think means there was an  
unhandled exception.

Is there any problem with reducing the size of a Frame so that there are  
controls that are no long visible? (It seems like the problem doesn’t  
occur  
if I manually reduce the size of Frame by dragging the border.)

Any suggestions would be appreciated.

Eric R.
