Hi Keith,

Yes, there is a much easier way to handle Drag and Drop.

Use the Pasteboard to pass the drag information from the source form object to 
the destination form object.

In the "On Begin Drag Over" form event for the source object, create a local 
object.

Store in that object the information needed to handle the drag.

Then place the object in the pasteboard using:

SET TEXT TO PASTEBOARD (JSON Stringify($theObject))

In the "On drop" form event for the destination object, retrieve the object 
using:

$theObject := JSON Parse(Get text from pasteboard)

Then perform the data manipulation with the arrays.

TIA, Jeremy


> On Sep 13, 2020, at 12:06 AM, Keith Goebel via 4D_Tech <[email protected]> 
> wrote:
> 
> I’m upgrading a structure to v18 (Win) and am trying to replace the obsolete 
> command
> _O_DRAG AND DROP PROPERTIES($Source_Object_p;$Source_Element_l;$Process_ID_l)
> with the v18 equivalent for the purposes of handling drag and drop between 
> two array based list boxes.
> 
> I’m sure must be an easy way to do it but I just can’t find it.
> 
> Can anyone point me in the direction of the info I need to accomplish the 
> equivalent of the old command?
> TIA, Keith

**********************************************************************
4D Internet Users Group (4D iNUG)
New Forum: https://discuss.4D.com
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to