Drag & drop reordering of a DataGrid form

Peter Haworth pete at mollysrevenge.com
Mon Oct 4 13:15:05 EDT 2010


Maybe I'm misunderstanding something but I don't see any code for  
handling drag/drop in the default datagrid behavior script I got when  
I installed LiveCode 4.5

Pete Haworth

On Oct 4, 2010, at 10:00 AM, use-revolution-request at lists.runrev.com  
wrote:

> Message: 3
> Date: Mon, 4 Oct 2010 09:40:47 -0400
> From: Trevor DeVore <lists at mangomultimedia.com>
> Subject: Re: Drag & drop reordering of a DataGrid form
> To: How to use Revolution <use-revolution at lists.runrev.com>
> Message-ID:
> 	<AANLkTikNK=kzhhcL5BbtpDECy1dpaeXe37tWw=r7q25+ at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> On Sat, Oct 2, 2010 at 9:32 AM, zryip theSlug  
> <zryip.theslug at gmail.com>wrote:
>
>> Just to clarify, this is a change in the datagrid library itself not
>> in the LiveCode engine.
>> I have tried this by using the revdatagridlibrary stack from the
>> LiveCode 4.5 into my version of Revolution 4.5 dp2 and now I have to
>> set the dragAction to make the reorder perform.
>
>
> In the dgDragMove handler update the code that sets the dragAction  
> to this:
>
> ## Make sure data grid control will accept drop
> if the dragSource contains the long ID of me and (the mouseControl  
> is not
> empty and the long id of the mouseControl contains the long ID of  
> me) then
>   set the dragAction to "move"
> end if
>
> -- 
> Trevor DeVore
> Blue Mango Learning Systems
> ScreenSteps: http://www.screensteps.com
> Releasable Revolution Resources for Developers:
> http://revolution.bluemangolearning.com




More information about the use-livecode mailing list