Drag_accept_files undefined in 1.9.8 (mingw32)

Hi,

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,
Zhimin

Zhimin Z. 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

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

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs