Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OleDrag and Drop?
Message
De
24/04/2001 08:11:43
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
24/04/2001 05:37:13
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00498897
Message ID:
00498939
Vues:
8
>Dear all,
>
>Is it possible to pass an object reference between two TreeView using ole drag and drop? Any example that can illustrate this would be highly appreciated? Thank you.
>
>Regards,
>Kueh

Kim,
I don't know if you could pass full object ref. In solution app there is a sample (should be under 'New features'). There you could set data to node's key and get obj ref when dropped :
*OleStartDrag
lparameters data,effectsallowed
data.SetData(this.SelectedItem.Key)

*OleDragDrop
lparameters data ...
If Data.Getformat(1)	&&CF_TEXT
  lcKey = Data.GetData(1)
  loNode = thisform.OleTreeSource.nodes(lcKey)
  wait window "Dropped "+loNode.Text
Endif
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
Répondre
Fil
Voir

Click here to load this message in the networking platform