Datagrid Drag and Drop
Josep
jmyepes at mac.com
Thu Sep 24 10:49:56 EDT 2009
Hi Trevor,
Only I get this error when drag from a edited cell, I want drag the entire
row and drop some of the values.. I download the sample and check it...
execution error at line 6 (Chunk: error in object expression), char 22
Salut,
Josep
Trevor DeVore wrote:
>
> On Sep 21, 2009, at 12:52 PM, Josep wrote:
>
>> I need use drag and drop between datagrids and others objects, how
>> to begin?
>> I need perform operations like exec sql sentences or print.
>>
>> Any tip about how begin to handle this?
>
> At RunRevLive I used an updated version of the Data Grid with built-in
> support for drag reordering and setting the dragImage for drag/drop.
>
> http://tr.im/data_grid
>
> I haven't documented it yet but starting a drag and drop operation
> with the row being dragged on displayed as the dragImage is really easy:
>
> ##
> ## Data Grid Group Script
> ##
> on dragStart
> ## use current row as dragImage
> put the dgIndex of the dgDataControl of the target into theIndex
> set the dgDragImageIndex of me to theIndex
>
> ## Set dragData to start drag operation
> set the dragData["private"] to "My Data"
> end dragStart
>
> --
> Trevor DeVore
> Blue Mango Learning Systems
> ScreenSteps: http://www.screensteps.com
> Application Development with Revolution Course:
> http://revolution.bluemangolearning.com/software/revproappdev/
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
Quoted from:
http://www.nabble.com/Datagrid-Drag-and-Drop-tp25530401p25560144.html
Trevor DeVore wrote:
>
> On Sep 21, 2009, at 12:52 PM, Josep wrote:
>
>> I need use drag and drop between datagrids and others objects, how
>> to begin?
>> I need perform operations like exec sql sentences or print.
>>
>> Any tip about how begin to handle this?
>
> At RunRevLive I used an updated version of the Data Grid with built-in
> support for drag reordering and setting the dragImage for drag/drop.
>
> http://tr.im/data_grid
>
> I haven't documented it yet but starting a drag and drop operation
> with the row being dragged on displayed as the dragImage is really easy:
>
> ##
> ## Data Grid Group Script
> ##
> on dragStart
> ## use current row as dragImage
> put the dgIndex of the dgDataControl of the target into theIndex
> set the dgDragImageIndex of me to theIndex
>
> ## Set dragData to start drag operation
> set the dragData["private"] to "My Data"
> end dragStart
>
> --
> Trevor DeVore
> Blue Mango Learning Systems
> ScreenSteps: http://www.screensteps.com
> Application Development with Revolution Course:
> http://revolution.bluemangolearning.com/software/revproappdev/
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
--
View this message in context: http://www.nabble.com/Datagrid-Drag-and-Drop-tp25530401p25573973.html
Sent from the Revolution - User mailing list archive at Nabble.com.
More information about the use-livecode
mailing list