Help with dragdata["private"] needed

Klaus Major klaus at major-k.de
Wed Sep 3 10:13:14 EDT 2008


Bonjour Eric,

> Bonjour Klaus,
>
> I think that you are a bit confused with D&D syntax ;-)

Oui, exactement, mon ami :-D

> In the script of "d_target" you should have something like:
>
> on dragEnter
>   if the dragData["private"] = "A private string" then set the  
> dragAction to "Copy" -- or "Move"
>   else set the dragAction to "None"
> end dragEnter
>
> on dragDrop
>   put "Accepted"
> end dragDrop
>
> You set the dragAction on dragEnter and dragdrop will occur  
> according to the dragAction set: none or...
> BTW put the dragData without specifying a key will always return the  
> dragdata["text"]

Oh, yes, that was the missing piece, thanks a lot.

Looks like the dentist's injections this morning had put some "purple  
haze all in(to) my brain" :-)


Best

Klaus Major
klaus at major-k.de
http://www.major-k.de





More information about the use-livecode mailing list