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:
01229664
Vues:
9
>>>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.

So you are moving the actual objects, not values. In this case the object has to be removed from within one container (with RemoveObject() method) and a copy of this object added to target container.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform