Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TreeView drag-drop of node only returns the node text
Message
From
27/06/2006 09:57:25
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01131927
Message ID:
01131978
Views:
19
This message has been marked as the solution to the initial question of the thread.
>Hi Cetin
>
>>Hope this helps:
>
>Thanks Cetin for the code. I believe the fullpath line of code is the key. But one thing I cannot understand is I get the text that is displayed in the node where as you are getting the key of the node. What did I miss.

Normally text of the node is waht you get. You missed the last procedure:)
  Procedure OLEStartDrag
    Lparameters oDataObject, nEffect
    oDataObject.SetData(This.SelectedItem.Key,1)
  Endproc
Here I'm setting oDataObject to contain the key instead of default text. Actually when grid gets the drop, it's getting the key and asking fullpath of nodeText from treeview using that key (lcKey = ...GetData(1), ...TV.Nodes(m.lcKey).Fullpath).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform