Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Treeview & windows explorer
Message
From
20/02/2017 18:07:40
 
 
To
20/02/2017 17:50:59
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Miscellaneous
Thread ID:
01648235
Message ID:
01648239
Views:
48
>Hi Al
>some precisions on my request :
>having a treeview at left and windows explorer at right: with the mouse i want to drag drop any object(folder with subfolders+files,any file,a selection of objects,...) toward the treeview.
>what codings must i put in the treeview (properties & methods concerned) to achieve this operation

As I see it the only tricky part is getting the object name (file, top-level folder etc) from File Explorer.

I would instrument the various methods in the TreeView to see what gets passed in during a DragDrop operation. Sorry I don't have time to test this myself.

Here's an example of dragging and dropping between 2 different TreeView controls, may give you some ideas: https://support.microsoft.com/en-us/help/307967/how-to-add-treeview-drag-and-drop-functionality-in-a-visual-basic-.net-or-visual-basic-2005-application

Finally, if you're having problems dropping directly on to the TreeView control itself, you might be able to "fake it out" by putting some other control on top of the TreeView e.g. a transparent Shape. But I would try something like that only as a last resort, hopefully a TreeView control offers OLE drag/drop functionality at least as good as any other VFP control.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Reply
Map
View

Click here to load this message in the networking platform