Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Controlling the Drag & Drop Icon
Message
 
To
14/08/2007 10:15:46
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01247998
Message ID:
01248341
Views:
20
>>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

Tamar,
thanks for the input. You said the same thing when I started this project and I'm sure correct. The problem is that the non OLE method is much easier to work with (for me, anyway). This project has a short time limit. Otherwise, I would have taken the time to learn OLE drag and drop.
Thanks,
John.
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Previous
Reply
Map
View

Click here to load this message in the networking platform