Re: Drag and drop replacement command(s)? Solved

2020-09-18 Thread Keith Goebel via 4D_Tech
Have just realised I pressed send before thanking all those who supplied me with examples of how to go about the replacement. So, to you all, I thank you. Cheers, Keith ** 4D Internet Users Group (4D iNUG) New Forum:

Re: Drag and drop replacement command(s)? Solved

2020-09-18 Thread Keith Goebel via 4D_Tech
Hi all. If you have no need (or interest) in my replacement for 4D’s Drag and Drop command, stop reading now :-). I have (like many others no doubt) developed alternative method calls to replace the obsolete 4D command _O_DRAG AND DROP PROPERTIES, and include the calls/code below in case

Re: Drag and drop replacement command(s)?

2020-09-14 Thread John DeSoi via 4D_Tech
As far as I know, _O_DRAG AND DROP PROPERTIES is depreciated but still works in the latest version of 4D. Putting this off until 4D removes the command is also an option. John DeSoi, Ph.D. > On Sep 13, 2020, at 5:35 PM, Keith Goebel via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Seems we

Re: Drag and drop replacement command(s)?

2020-09-14 Thread Peter Bozek via 4D_Tech
On Mon, Sep 14, 2020 at 12:35 AM Keith Goebel via 4D_Tech <4d_tech@lists.4d.com> wrote: > > So, if I am understanding you correctly, we need to replace the command with: > - create an object during On Begin Drag Over (source object) > - store the source listbox variable (pointer/name?) and its

Re: Drag and drop replacement command(s)?

2020-09-13 Thread nug via 4D_Tech
Keith, Sorry but I do not really have code that will help you. My code works with either a selection listbox as source (creates a set), or expects a file/folder from the OS However, roughly what you need to do: Note: my memory of this is foggy…and I am guessing a bit here Since you are using an

Re: Drag and drop replacement command(s)?

2020-09-13 Thread Keith Goebel via 4D_Tech
Thanks to everyone who replied. Looks like there is no new command to replace the dropped command… Wayne: > The best documentation is in the introduction to the topic: > https://doc.4d.com/4Dv18/4D/18/Drag-and-Drop.300-4505037.en.html Thanks for your advice. I have been through that doc many

Re: Drag and drop replacement command(s)?

2020-09-13 Thread Jeremy French via 4D_Tech
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

Re: Drag and drop replacement command(s)?

2020-09-13 Thread Wayne Stewart via 4D_Tech
Keith, A better place to ask this sort of question is on the new forum: https://discuss.4d.com Alternatively, you can always ask 4D Australasia tech support. Quoting from the docs: Since version 11 of 4D, it is recommended to manage drag and drop operations using the On Begin Drag Over event

Drag and drop replacement command(s)?

2020-09-12 Thread Keith Goebel via 4D_Tech
Hi all. 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. An element in either