Re: Drag n drop (between processes)

2019-08-13 Thread Chip Scheide via 4D_Tech
This is a problem is of my own making, as the code for drag_n_drop was moved from the host system to a component. As a result in the case of 2 or more allowed source tables, a process variable which contained a pointer to the dropped record's source table was no longer accessible. right now th

Re: Drag n drop (between processes)

2019-08-12 Thread Chip Scheide via 4D_Tech
I'll reply in more detail tomorrow, as I am at home. > I throw the data i want dropped into an object for dragndrop. Then > when i drop I know what iam getting as i include the table and record > numbers. Where i dragged it from(process,form,object) are also > included. Made my listbox drag an

Re: Drag n drop (between processes)

2019-08-12 Thread Adam Bevan via 4D_Tech
I throw the data i want dropped into an object for dragndrop. Then when i drop I know what iam getting as i include the table and record numbers. Where i dragged it from(process,form,object) are also included. Made my listbox drag an drop so much easier to handle and very generic. Sent from my

Re: Drag n drop (between processes)

2019-08-12 Thread Pat Bensky via 4D_Tech
Chip, This is how we manage dragging form a listbox in one process to a listbox in another process: 1. In the source listbox: *Case of* *:* (*Form event*=On Begin Drag Over) *RESOLVE POINTER*(*Self*;tSourceObjectName;$Table;$field) *ARRAY LONGINT*($aiItemsSelected;0) $lElementPos:=*Selected l

Re: Drag n drop (between processes)

2019-08-12 Thread Douglas von Roeder via 4D_Tech
Chip: Here’s some ALP code that uses that command - it might give you some ideas… *Case of* *:* ($formEvent_L=On Drop) *Case of* *:* ($currentObjectName_T="Lock_CustomerName”) *C_BLOB*($blob_X) *GET PASTEBOARD DATA*("net.e-node.alp.object";$blob_X) *If* (OK=1) *C_LONGINT*($eList) $eLis

Re: Drag n drop (between processes)

2019-08-12 Thread Douglas von Roeder via 4D_Tech
Chip: Check out the docs for “Managing Pasteboards”. I’ve used this feature only with ALP but ALP uses the same drag and drop events that 4D does so there will be some overlap. 4 bytes could well be a longint representing the process ID where the drag was initiated - that’s a WAG. The bigger payl

Drag n drop (between processes)

2019-08-12 Thread Chip Scheide via 4D_Tech
I am dragging and dropping 1 or more records from 1 process onto a listbox in a second process. I see that I can use the pasteboard to mange the data during this action. However(dragging 1 record) I am looking at the data types returned by GET PASTEBOARD DATA TYPE com.4d.private.pid & com.4

Re: Drag n drop between processes

2018-07-11 Thread Chip Scheide via 4D_Tech
Thanks Keisuke This works well. On Wed, 11 Jul 2018 02:31:13 +, Keisuke Miyako via 4D_Tech wrote: > Hello, > > The 510 bytes data does not contain anything useful for you. > > You need to append data yourself at the drag source (append data to > pasteboard), > Which can be an array of recor

Re: Drag n drop between processes

2018-07-11 Thread Chip Scheide via 4D_Tech
THANKS! On Wed, 11 Jul 2018 02:31:13 +, Keisuke Miyako via 4D_Tech wrote: > Hello, > > The 510 bytes data does not contain anything useful for you. > > You need to append data yourself at the drag source (append data to > pasteboard), > Which can be an array of record numbers/primary keys (

Re: Drag n drop between processes

2018-07-10 Thread Keisuke Miyako via 4D_Tech
Hello, The 510 bytes data does not contain anything useful for you. You need to append data yourself at the drag source (append data to pasteboard), Which can be an array of record numbers/primary keys (variable to blob), A set (boolean array from set, variable to blob), Or anything that makes se

Re: Drag n drop between processes - native Pasteboard only?

2018-07-10 Thread Jeremy French via 4D_Tech
was/am doing this through IP sets... > > ...remember someone telling me that it was possible to do drag n > drop between processes using ONLY the pasteboard... ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.

Re: Drag n drop between processes - native Pasteboard only?

2018-07-10 Thread Chip Scheide via 4D_Tech
that it was possible to do drag n drop between processes using ONLY the pasteboard, and the native data placed there during Drag n drop. Thanks Chip On Tue, 10 Jul 2018 13:35:34 -0500, Keith Culotta via 4D_Tech wrote: > Hope this is on topic... > > During : (Form event=On Begin Drag Ove

Re: Drag n drop between processes

2018-07-10 Thread Keith Culotta via 4D_Tech
Hope this is on topic... During : (Form event=On Begin Drag Over) in the source list, I put the information about the item being dragged on the Pasteboard LOAD RECORD([Item]) C_OBJECT($obj) OB SET($obj;"$rec";Record number([Item])) O

Drag n drop between processes

2018-07-10 Thread Chip Scheide via 4D_Tech
Context: dragging 1 (or more) records/rows from a selection listbox to another form in another process. 4D v13. I know, and can see by using GET PASTEBOARD DATA TYPE, and GET PASTEBOARD DATA that if I drag a line/record from a selection listbox to another process there is "stuff" put on the pa