in reply to Re: A Drag and Drop (perl/Tk) question.
in thread A Drag and Drop (perl/Tk) question.

grummerX is correct with his new Drop method, you need to grab X and Y from the source event in order to get the correct list item using GetNearest.

Also, the example given at Drag-and-Drop Primer binds a mouse event, for the drag start, to all widgets that are DND capable. This approach works better for canvas to canvas image or shape dropping than list to list dropping. A better example would be Drag and drop with Perl/Tk as this covers DND from list to list.

--
hiseldl

  • Comment on Re: Re: A Drag and Drop (perl/Tk) question.