Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Treeview & windows explorer
Message
De
20/02/2017 17:42:17
 
 
À
20/02/2017 17:30:30
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:
01648237
Vues:
46
>I stumble upon a treeview problem asked by someone:
>how to drag&drop (or oleDragdrop) from windows explorer manually and directly to a treeview (SP6 shipped with vfp)
>the object dropped in the treeview can be a complet folder with all its contents (subfolders..), any file,a picture,...
>anyone can solve this problem ?
>i set the 2 properties for the treeview(oleclass:"MSComctlLib.TreeCtrl.2")
>treeview.oleDragMode=1
>treeview.oleDropmode=1
>there is 2 treeview methods to fill: oledragOver and oleDragDrop to accomplish the goal but how?
>note : any thing must change in the source.
>thank you in advance.

Maybe I don't understand what you're trying to do, but my first thought would be that all you really need is the name of the top level folder passed in as a parameter in one of the OleDrag* events/methods. You can then process subfolders and files (with ADIR() etc) and programmatically create TreeView nodes to match whatever you find.
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform