in reply to Drag & Drop Problem

I suggest you to not implement drag-n-drop functionality of your widgets within your script.
Much better is to use a widget with draggable columns.
I beleive perl/Tk has something to suggest.

But if I were asked to implement draggable columns with perl with Tk, I would use for example TkTreeCtrl, which allows draggable columns.
Also I used to write something with similar functionality recently using tablelist widget, which is damn powerful.

Well, I do not limit myself into limeted set of perl/Tk widgets, and I use all Tcl/Tk widgets freely with a use of Tcl::Tk CPAN module.

Replies are listed 'Best First'.
Re^2: Drag & Drop Problem
by Ace128 (Hermit) on May 20, 2006 at 13:22 UTC
    Well, 2 things.

    1. Code is actually taken from the module. Meaning its not a seperate script I pasted using the module.

    2. The idea with this was to add whatever per column. As it it in this example, I have a HList, but the idea later was to add any kind of widget into a column (frame). That is, we have the label at the top (so we have something to "drag"), and whatever Tk thing below as wanted... Not sure if those things mentined supports that...
      perlTk has DropSite, like you searched.

      As I looked into it, it is poorly documented (see perldoc Tk::DropSite) but perlTk source tree contain demos to start with.

      Sorry for not very much help specific to your question.

        That's ok. I was just hoping _anyone_ had some code to fix so I could drag the label (and also make the label viewable).