drag'n'drop in text fields
Klaus major-k
klaus at major-k.de
Mon Oct 28 17:03:39 EDT 2019
Hi all,
quick question LC 9.5 on macOS 10.14.6:
We can drag'n'drop text into textfields and
this works without any scripting.
We can also drag'n'drop one or more files into
a textfield and the filepath appears in the field
where we dropped the file(s).
However there does not seem to be any message
send to the field when dropping a file, but I want
to catch it.
I tried something like:
--------------------------------
on selectionChanged
send "doit" to me in 10
end selectionChanged
command doit
put the selection
end doit
--------------------------------
However I can see the pathname is selected but nothing
appears in the messagebox.
What am I missing or what should I do instead?
Thanks in advance!
Best
Klaus
--
Klaus Major
https://www.major-k.de
klaus at major-k.de
More information about the use-livecode
mailing list