[Starkit] Activating starkit by drag/drop.

Jeff Hobbs jeffh at ActiveState.com
Fri May 27 16:40:05 CEST 2005


John R. Culleton wrote:
> Many MSWin applications are activated by dragging a file to 
> the program Icon and then dropping the file on it. Editors 
> are a common example. 
> 
> 1. Can this be done with a MSWin starkit app?

Yes.

> 2. If yes, then what kind of interior code would be needed in 
> the tcl file to open the dropped file?? 

You have to make sure that it will accept the file as the
first arg and do something correctly with it.  For example,
if you have a standard tclkit or the basekit from ActiveTcl,
you can drop a .tcl file on there and it will run it.

  Jeff Hobbs, The Tcl Guy
  http://www.ActiveState.com/, a division of Sophos



More information about the Starkit mailing list