Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OleDrag and Drop?
Message
From
24/04/2001 08:11:43
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
24/04/2001 05:37:13
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00498897
Message ID:
00498939
Views:
9
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform