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 10:49:39
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:
01132002
Views:
15
>Hi Cetin
>
>>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).
>
>Wow, so does this mean I could have sent the TV's object ref. like this:
>oDataObject.SetData(This, "VFP Source Object")
>
>I could then get the oTV.SelectedItem.Key in the dropped object?

I didn't say send object reference. I don't know if you could. Even if you could sending an object reference instead of a simple key string would impact perfromance I think. Just send the "key".

oDataObject.SetData(this.SelectedItem.KEY,1)

Target simply does:

lcNodeKey = oDataObject.GetData(1) && It is oTV.SelectedItem.Key

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