Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Drag & Drop between containers
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01229584
Message ID:
01229672
Vues:
24
>>>>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,
Using just drag & drop, not OleDragDrop, I created the small container on the form. I can move it anywhere on the form but not over another object on the form. Should I still be using OLE?
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform