drag'n'drop in text fields

Bob Sneidar bobsneidar at iotecdigital.com
Mon Oct 28 18:36:04 EDT 2019


on dragDrop doesn't trigger? 

on dragDrop
  put the dragData ["text"] into tDragText
end dragDrop

Bob S


> On Oct 28, 2019, at 14:03 , Klaus major-k via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> 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
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list