Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Treeview & windows explorer
Message
De
20/02/2017 18:07:40
 
 
À
20/02/2017 17:50:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Divers
Thread ID:
01648235
Message ID:
01648239
Vues:
47
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform