Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Drag&Drop
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00169015
Message ID:
00169033
Views:
20
>>Hi, everyone!
>>Please, can you help with Drag&Drop.
>>All I need - just Drag some node from MSTreeView Control 6.0 and Drop .Node(i).Text on the form as text into textbox or list item.
>
>Have a look at the solution samples that came with Visual Fox 6 - there is a sample in there in the 'New Features' section about OLE drag and drop. I have done some work with drag & drop (there is a container class on it's way to the files section right now) and it is surprisingly easy.

I just had a quick look and to get you on your way, check these out:

1). In the text box, change the OLEDropMode to Enabled.
2). In the OLEDragDrop event of the textbox, you put your code.
3). This code includes loSource=oDataObject.GetData("VFP Source Object",@array)
4). loSource now points to the source object, just reference your source data via loSource.Text (or whatever you need to get).

Hope this helps,
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Previous
Reply
Map
View

Click here to load this message in the networking platform