Re: Drag drop reordering of a DataGrid form

2010-10-06 Thread zryip theSlug
On Mon, Oct 4, 2010 at 3:40 PM, Trevor DeVore li...@mangomultimedia.com wrote:
 On Sat, Oct 2, 2010 at 9:32 AM, zryip theSlug zryip.thes...@gmail.comwrote:

 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


Thanks Trevor 8-)


Regards,
-- 
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.co.cc
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Drag drop reordering of a DataGrid form

2010-10-05 Thread Trevor DeVore
On Mon, Oct 4, 2010 at 1:15 PM, Peter Haworth p...@mollysrevenge.comwrote:

 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


The code is in the data grid behavior script: edit script of btn Data Grid
of stack revDataGridLibrary

Our good friend the Slug posted some links to some example stacks I've made
showing how to use it. The code snippet I posted for Monte and Monsieur Le
Slug was to fix an issue with setting the dragAction. The code snippet goes
in the Data Grid button script.

-- 
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers:
http://revolution.bluemangolearning.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Drag drop reordering of a DataGrid form

2010-10-05 Thread Trevor DeVore
On Mon, Oct 4, 2010 at 1:15 PM, Peter Haworth p...@mollysrevenge.comwrote:

 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


The code is in the data grid behavior script: edit script of btn Data Grid
of stack revDataGridLibrary

Our good friend the Slug posted some links to some example stacks I've made
showing how to use it. The code snippet I posted for Monte and Monsieur Le
Slug was to fix an issue with setting the dragAction. The code snippet goes
in the Data Grid button script.

-- 
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers:
http://revolution.bluemangolearning.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Drag drop reordering of a DataGrid form

2010-10-04 Thread Trevor DeVore
On Sat, Oct 2, 2010 at 9:32 AM, zryip theSlug zryip.thes...@gmail.comwrote:

 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
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Drag drop reordering of a DataGrid form

2010-10-04 Thread Peter Haworth
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-requ...@lists.runrev.com  
wrote:



Message: 3
Date: Mon, 4 Oct 2010 09:40:47 -0400
From: Trevor DeVore li...@mangomultimedia.com
Subject: Re: Drag  drop reordering of a DataGrid form
To: How to use Revolution use-revolution@lists.runrev.com
Message-ID:
aanlktiknk=kzhhcl5bbtpdecy1dpaexe37tww=r7q...@mail.gmail.com
Content-Type: text/plain; charset=ISO-8859-1

On Sat, Oct 2, 2010 at 9:32 AM, zryip theSlug  
zryip.thes...@gmail.comwrote:



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


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Drag drop reordering of a DataGrid form

2010-10-04 Thread Monte Goulding
 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


Thanks Trevor, that did the job.
--
Monte Goulding
M E R Goulding Software Development
Bespoke application development for vertical markets

InstallGadget - How to create an installer in 10 seconds
revObjective  - Making behavior scripts behave

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Drag drop reordering of a DataGrid form

2010-10-02 Thread zryip theSlug
On Fri, Oct 1, 2010 at 2:23 PM, Monte Goulding
mo...@sweattechnologies.com wrote:
 Hold the phone. Looking at the data grid behavior script this might already 
 be a feature but I can't find any docs about enabling it. Trevor?

 Talking to myself here but the blog post has been updated with a drag and 
 drop script using the inbuilt support that seems to be undocumented. Scroll 
 to the bottom but I'm leaving my original script as it still might be 
 worthwhile for people that want to give their drag and drop a customised look.

 http://goulding.ws/consulting/blog/

 Cheers

Hi Monte,

You are correct and Trevor could confirm that: for now there is no
documentation about the drag  drop features of a datagrid.

Concerning Drag  drop, Trevor has shared different links.

1) An example with a mp3 library:
http://tr.im/data_grid

This example shows how reorder lines in a DG or copy lines from a DG
table to a DG form

2) A sample stack
http://www.bluemangolearning.com/download/revolution/tools/dragdroptest.zip
The code used in the DG group is similar to the script you shared in
your blog excepted the dragMove handler is missing.


I shared also a small lab stack one or two weeks ago, to demonstrate
how drag  drop lines from a DG table to another DG table.
http://www.aslugontheroad.co.cc/index.php?option=com_phocadownloadview=categorydownload=11:experiment-15-drag-drop-in-dgid=7:data-gridItemid=63



You have found your way with that so I posted this in case it could be
useful for someone in the list.
Anyway the Trevor's mp3 library still interesting to study.



Regards,
-- 
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.co.cc
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Drag drop reordering of a DataGrid form

2010-10-02 Thread Monte Goulding
 2) A sample stack
 http://www.bluemangolearning.com/download/revolution/tools/dragdroptest.zip
 The code used in the DG group is similar to the script you shared in
 your blog excepted the dragMove handler is missing.

Ah, this stack would have been handy. It doesn't work unless you set the 
dragAction in dragMove though.

Cheers

--
Monte Goulding
M E R Goulding Software Development
Bespoke application development for vertical markets

InstallGadget - How to create an installer in 10 seconds
revObjective  - Making behavior scripts behave

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Drag drop reordering of a DataGrid form

2010-10-02 Thread zryip theSlug
On Sat, Oct 2, 2010 at 2:51 PM, Monte Goulding
mo...@sweattechnologies.com wrote:
 2) A sample stack
 http://www.bluemangolearning.com/download/revolution/tools/dragdroptest.zip
 The code used in the DG group is similar to the script you shared in
 your blog excepted the dragMove handler is missing.

 Ah, this stack would have been handy. It doesn't work unless you set the 
 dragAction in dragMove though.

Monte,

Right. It seems necessary to set the dragAction in the dragMove
handler since LiveCode 4.5.
When I'm running the same stack with Revolution 4.5 dp2 all works like
a charm without the dragMove handler.


Regards,
-- 
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.co.cc
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Drag drop reordering of a DataGrid form

2010-10-02 Thread zryip theSlug
 On Sat, Oct 2, 2010 at 2:51 PM, Monte Goulding
 mo...@sweattechnologies.com wrote:
 2) A sample stack
 http://www.bluemangolearning.com/download/revolution/tools/dragdroptest.zip
 The code used in the DG group is similar to the script you shared in
 your blog excepted the dragMove handler is missing.

 Ah, this stack would have been handy. It doesn't work unless you set the 
 dragAction in dragMove though.

 Monte,

 Right. It seems necessary to set the dragAction in the dragMove
 handler since LiveCode 4.5.
 When I'm running the same stack with Revolution 4.5 dp2 all works like
 a charm without the dragMove handler.

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.


Regards,
-- 
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.co.cc
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Drag drop reordering of a DataGrid form

2010-10-01 Thread Monte Goulding
Hold the phone. Looking at the data grid behavior script this might already be 
a feature but I can't find any docs about enabling it. Trevor?

 Hi Everyone
 
 I've got a blog up for reordering DataGrid forms by drag and drop. Doesn't 
 work for tables and you must cache controls.
 
 http://goulding.ws/consulting/blog/
 
 Cheers

--
Monte Goulding
M E R Goulding Software Development
Bespoke application development for vertical markets

InstallGadget - How to create an installer in 10 seconds
revObjective  - Making behavior scripts behave

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Drag drop reordering of a DataGrid form

2010-10-01 Thread Monte Goulding
 Hold the phone. Looking at the data grid behavior script this might already 
 be a feature but I can't find any docs about enabling it. Trevor?

Talking to myself here but the blog post has been updated with a drag and drop 
script using the inbuilt support that seems to be undocumented. Scroll to the 
bottom but I'm leaving my original script as it still might be worthwhile for 
people that want to give their drag and drop a customised look.

http://goulding.ws/consulting/blog/

Cheers

--
Monte Goulding
M E R Goulding Software Development
Bespoke application development for vertical markets

InstallGadget - How to create an installer in 10 seconds
revObjective  - Making behavior scripts behave

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution