Drag and drop filetype
J. Landman Gay
jacque at hyperactivesw.com
Sat Jan 14 18:30:38 EST 2012
On 1/14/12 8:07 AM, Randolph Valentine wrote:
> Hi, all. I've got a very basic question. After a file is drag-and-dropped,
> how can I determine WHAT the dropped item is referring to, e.g., a FOLDER or
> a FILE, and if a file, RELIABLY, what KIND of file (e.g., a doc or a wav)?
See "dragData" in the dictionary. Write a dragDrop handler that checks
the dragData["files"] and you can parse out the lines, which contain the
file path(s) to the files that were dropped. This works cross platform.
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode
mailing list