DragAcceptFiles on linux

Hi,

A newbie question:

Seems the Linux version does not include the "DragAcceptFiles" method
in the "wxTextCtrl" class - it's windows specific.
I've got an app that uses it, so the app failes miserably.

Could not find any info on the subject.
I'm on gtk 1.2.8 and wxPython 2.2.7.

···

--
Michal Kurowski
<mkur@poczta.gazeta.pl>

You may have to use "traditional" drag-and-drop. There's a discussion (incomplete) of that here:

http://wiki.wxpython.org/index.cgi/DragAndDrop

and you can find samples in the wxPython demo, and in wxoo.dnd if you've got a copy of wxoo/wxprop.

Good luck,
Mike

Michal Kurowski wrote:

···

Hi,

A newbie question:

Seems the Linux version does not include the "DragAcceptFiles" method in the "wxTextCtrl" class - it's windows specific.
I've got an app that uses it, so the app failes miserably.

Could not find any info on the subject.
I'm on gtk 1.2.8 and wxPython 2.2.7.

--
_______________________________________
  Mike C. Fletcher
  Designer, VR Plumber, Coder
  http://members.rogers.com/mcfletch/

Michal Kurowski wrote:

Hi,

A newbie question:

Seems the Linux version does not include the "DragAcceptFiles" method in the "wxTextCtrl" class - it's windows specific.
I've got an app that uses it, so the app failes miserably.

Could not find any info on the subject.
I'm on gtk 1.2.8 and wxPython 2.2.7.

Yes, DragAcceptFiles is a MSW-only hold over from wxWindows 1.x that is totally deprecated. The proper way to do DnD of files is to setup a wxDropTarget that accepts a wxFileDataObject. (Or just derive a class from wxFileDropTarget) See the DragAndDrop sample in the demo.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!