Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TreeView drag-drop of node only returns the node text
Message
De
27/06/2006 10:49:39
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01131927
Message ID:
01132002
Vues:
16
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform