DragImage question

Peter Haworth pete at mollysrevenge.com
Wed Sep 1 19:02:22 EDT 2010


Thanks, I can't quite get this to work.  If  I use your code, I get an  
error on the export command "Chunk: No such object" and the file is  
not created.

I changed the export command to ....."file "DragImageField" instead  
(file instead of image), then the file was created but my Mac says  
it's a simple text file.  Then the set command fails with the same  
error.

Any ideas?

Pete Haworth


On Sep 1, 2010, at 9:39 AM, use-revolution-request at lists.runrev.com  
wrote:

> Message: 19
> Date: Wed, 1 Sep 2010 10:38:53 +0200
> From: zryip theSlug <zryip.theslug at gmail.com>
> Subject: Re: DragImage question
> To: How to use Revolution <use-revolution at lists.runrev.com>
> Message-ID:
> 	<AANLkTi=c2SieLCDgwS4HwLP9_CtjkWHc7Y0h0woy6e01 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> On Wed, Sep 1, 2010 at 8:53 AM, Peter Haworth  
> <pete at mollysrevenge.com> wrote:
>> Just working on my first drag/drop code.  All seems to be working  
>> fine and a
>> lot easier to implement than I thought it would be!
>>
>> I'm dragging the contents of a field (text) into another field on  
>> the same
>> card and would like to see a faint outline of the source field and  
>> it's text
>> follow the cursor to the destination field.  I know I can set the  
>> dragImage
>> property to an image number but in this case, the image would be  
>> different
>> each time because of the text in the field.
>
> Hi Pete,
>
> A solution could consist to create an image of the field on the fly.
> For doing that you can use the export snapshot command:
>
> export snapshot from field "myDataField" \
>         to image "DragImageField" as PNG
>  set the dragImage to the short id of image "DragImageField"
>
>
> Regards,
> -- 
> -Zryip TheSlug- wish you the best! 8)
> http://www.aslugontheroad.co.cc




More information about the Use-livecode mailing list