use-revolution Digest, Vol 84, Issue 3
Peter Haworth
pete at mollysrevenge.com
Thu Sep 2 17:02:50 EDT 2010
Thanks, that works perfectly!
Pete Haworth
On Sep 2, 2010, at 10:00 AM, use-revolution-request at lists.runrev.com
wrote:
> No no, ;)
>
> I forgot to precise that you have to create the image first
>
> A script like this should works to drag a field:
>
> on dragStart
> if (there is not a image "DragField" of this cd) then
> lock screen
> create image "DragField"
> set the visible of it to false
> unlock screen
> end if
>
> export snapshot from field 1 to image "DragField" as PNG
>
> set the dragImage to the ID of image "DragField"
> put (the clickH - the left of me) & comma & (the clickV - the top
> of me) into tImageOffset
> set the dragImageOffset to tImageOffset
>
> set the dragData["private"] to text of field 1
> end dragStart
>
>
> Regards,
> --
> -Zryip TheSlug- wish you the best! 8)
> http://www.aslugontheroad.co.cc
More information about the use-livecode
mailing list