Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Controlling the Drag & Drop Icon
Message
De
14/08/2007 10:15:46
 
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 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01247998
Message ID:
01248021
Vues:
32
>I have a form with a number of containers each holding more containers. I have setup Drag and Drop within the form only, (not OLE) and it is working great. I have set flags for where an item can be dropped or not and that part works fine.
>
>Now I am trying to set the mouse cursor/pointer to show where something can/cannot be dropped. I now realize that the item being dragged is what sets the icon but I can't figure out how I am supposed to know what container it is over so I can change the pointer. Anyone got any sample code or can point me to some?

You're better off working with OLE drag and drop, even if you're only using it within your application. You get a lot more control over the process. In particular, whenever you drag over something, both the drag source's OLEGiveFeedback and the drop target's OLEDragOver methods fire, giving you a chance to decide what to do.

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform