Re: Rép : problem with drag-dropping a text string (was: Re: use-revolution Digest, Vol 55, Issue 24)

Eric Chatonet eric.chatonet at sosmartsoftware.com
Sun Apr 13 11:22:50 EDT 2008


Hi Colin,

Le 13 avr. 08 à 16:01, Colin Holgate a écrit :
> On Apr 13, 2008, at 4:45 AM, Eric Chatonet wrote:
>
>> on dragStart
>>  set the dragdata["text"] to Transform(the selectedText) --
>> end dragStart
>> -----------------------
>> function Transform pText
>>  return pText && "modified"
>> end Transform
>
>
> This too would fail if you include a pass dragStart. I suppose  
> though that you would never pass dragStart normally?

AFAIK this works with or without 'pass dragStart' unless you have  
another dragStart handler in the hierarchy that redefines the dragdata 
["text"] and put a mess :-)
But usually you don't need to pass this message.

Best regards from Paris,
Eric Chatonet.
----------------------------------------------------------------
Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/
Email: eric.chatonet at sosmartsoftware.com/
----------------------------------------------------------------





More information about the use-livecode mailing list