>>>>I had not worked with drag & drop before but working with the sample code in VFP and a few other sources I found it simple to add the needed code to drag & drop a container anywhere on a form.
>>>>
>>>>Now I need to drag & drop between containers on the same form and I'm kinda lost. How do I get the object being moved from one container to end up in another container on the same form? It moves within the original container ok, it just won't move out of it to the form or to the other container.
>>>
>>>Could you clarify what you are trying to achieve? Do you need to drag&drop the actual controls (i.e. textbox, listbox, etc. or the
values in these controls?
>>
>>Nick,
>>I have a form showing a number of stations(containers). Each station (container) has some number of work orders (small containers) within it each showing information about a work order. I want the user to be able to drag a work order (small container) from one station (container) to another as the work proceeds through the shop.
>>
>>Put simply, I need to drag a small container from within one large container and drop it into another large container. I will also need only allow them to drop it into certain containers but I figure if I get drag & drop that the restrictions will be easy.
>
>One simple way to do it would be not placing the small containers INSIDE the station container, but just above it (in Z-order). I.e. all the containers are created at the same level (say, in the Form or Page) This way you do not need to remove/readd small container object and deal with container hierarchy, but on drop just probe what "target" container is under it. Then set whatever property that tells what target container now it belongs to.
Nick,
thanks. I think that is the way I will do it. Each of the small work order containers will have at least 3 labels inside it and the entire small container has to be generated from info in tables on the fly. Your suggestion is sounding really good right now since I didn't realize I had to remove and create each of them.
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn