in reply to Tk Drag and Drop Between Applications

Tcl/Tk's drag-and-drop is discussed at http://mini.net/tcl/571

Please note this is not perlTk, but it is Tcl/Tk which is available for Perl programs with very similar syntax

In order to go this way, you will need Tcl::Tk module from CPAN and will probably will face some difficulties, but those difficulties are solve-able and I will be happy to provide a bit of my knowledge in this way round...

Best regards,
Courage, the Cowardly Dog

  • Comment on Re: Tk Drag and Drop Between Applications

Replies are listed 'Best First'.
Re^2: Tk Drag and Drop Between Applications
by Ardemus (Beadle) on Dec 16, 2004 at 02:59 UTC
    Fantastic Courage! Thanks.

    I've got a DnD proof of concept working in pure Tcl/Tk (just a tweak of the TkDnD 'dnddemo.tcl' file). I don't know Tcl, so that one tweak was a pain, but at this point I'm going to be learning *something* new.

    Do you know if I can work with my mySQL database from Tcl/Tk also? If so, I could create the entire tool in Tcl/Tk and create a single executable... what is it, Starkit?

    I'll post my progress here for anyone following my footsteps.

      Although Tcl/Tk allows mySQL database, there is no need to switch to Tcl for database access, because you can use it from Perl.

      For example, you can do GUI part (with DnD) in Tcl and remaining part using Perl.

      It's for you to decide.
      Let me know if you will have some difficulties, I'll help solving them.

      Best regards,
      Courage

        Thanks, it looks like I'll need some help. I have Activestate Perl and Activestate Tcl/Tk.

        Activestate doesn't have Windows PPMs for Tcl::Tk or Tcl. So I tried my hand at making Tcl 0.84.

        It "looks good", but says, "Note: (probably harmless)" the following libraries are not found (I've taken a random sample and conifirmed that they aren't on my system).

        oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib msvcrt.lib
        It ends with "Writing Makefile for Tcl". Running make returns this error:

        make: *** No rule to make target `C:\Perl\lib^', needed by `Makefile'.  Stop.

        I've poked around online for this issue, but Tcl::Tk doesn't have much coverage.