On Fri, Dec 18, 2009 at 3:24 AM, Michael Gerbracht <smartma...@arcor.de> wrote:
> I plan to write a program which makes use of Drag & Drop and I wonder why
> DrawImage and FileDropTarget are not implemented in wxLua? Are there any
> special reasons for it? Are there alternative ways to implement these
> features?

Humm, yes, I see that I never got around to implementing drag and
drop. Currently virtual class member functions have to be handled by
subclassing the class and writing the functions by hand. It's actually
not a big deal, but it has to be done. I guess
I have to finally learn how to use the wxWidgets drag and drop
facilities to see what needs to be done.

> What I would like to do:
>
> 1. Drag items from a TreeCtrl to another TreeCtrl or to a window. I have seen
> that there is an easy way to use drag & drop inside of one TreeCtrl but you
> cannot drag the item outside of the control.

At first glance I think I need to only implement the text and file
drop targets since with the text you can specify a special string to
contain information about where the rest of the data is, perhaps in a
Lua table in your program.

> 2. Loading files by dragging them from the explorer to a TreeCtrl pane.

This can be done with the wxDropFilesEvent by connecting to the
wxEVT_DROP_FILES event type, but I see that it only works in MSW.
http://docs.wxwidgets.org/stable/wx_wxdropfilesevent.html#wxdropfilesevent

Regards,
    John

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to