Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Drag&Drop from ActiveX to a Container Class
Message
From
15/02/2005 11:02:06
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows NT
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00986705
Message ID:
00987058
Views:
38
>This worked in Samples:
>
>
>LPARAMETERS oDataObject, nEffect
>LOCAL aValues, i, nSelected
>
>DIMENSION aValues[9]
>aValues[1] = subs(THIS.SELECTEDITEM.TEXT, 1, 3)
>aValues[2] = subs(THIS.SELECTEDITEM.TEXT, 1, 3)
>aValues[3] = subs(THIS.SELECTEDITEM.TEXT, 1, 3)
>aValues[4] = subs(THIS.SELECTEDITEM.TEXT, 1, 3)
>aValues[5] = subs(THIS.SELECTEDITEM.TEXT, 1, 3)
>aValues[6] = subs(THIS.SELECTEDITEM.TEXT, 1, 3)
>aValues[7] = subs(THIS.SELECTEDITEM.TEXT, 1, 3)
>aValues[8] = subs(THIS.SELECTEDITEM.TEXT, 1, 3)
>aValues[9] = subs(THIS.SELECTEDITEM.TEXT, 1, 3)
>
>oDataObject.SetData(@aValues,"OLE Variant Array")
>
thanks for you response!

nop, still get the same error. remember we are talking about the TreeView ActiveX. i found out last night, reading through the help file, that you, unlike 'normal controls', can not use the SetData() in the the TreView.OleStartDrag Method.

so the question is, if you don't want the default data & data type to be draged, but rather specify it yourself, where do you put the SetData() and the SetFormat() (to create/specify a new data format)?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform