Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Treeview & windows explorer
Message
From
20/02/2017 17:42:17
 
 
To
20/02/2017 17:30:30
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:
01648237
Views:
45
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform