Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Drag and drop operations
Message
From
21/06/2004 08:52:30
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Drag and drop operations
Miscellaneous
Thread ID:
00915602
Message ID:
00915602
Views:
50
Maybe i put the message in the wrong section...:-)
Anyway, i start thinking about using a drag and drop solution in my programs.. What i want to do actually is to drag a voice from a grid (but i guess it's not possible, is it ?) or from a listbox into a Treeviecontrol.
I try to follow the example but i can't do anything.
What can I do ?
I tried to copy the example code in my object but for example i got an error when the program start processing the OleDragOver method in which I try to get the format of the object :

LPARAMETERS odataobject, effect, button, shift, x, y, state
DO CASE
CASE State == 0 &&DRAG_ENTER
DO CASE
CASE oDataObject.GetFormat("OLE Variant Array") && Array
This.OLEDropHasData = 1 &&DROPHASDATA_USEFUL
This.OLEDropEffects = 1+2 &&DROPEFFECT_COPY + DROPEFFECT_MOVE

CASE oDataObject.GetFormat(1) && Text
This.OLEDropHasData = 1 &&DROPHASDATA_USEFUL
This.OLEDropEffects = 1+2 &&DROPEFFECT_COPY + DROPEFFECT_MOVE

CASE oDataObject.GetFormat(15) && Files CF_HDROP
This.OLEDropHasData = 1 &&DROPHASDATA_USEFUL
This.OLEDropEffects = 4 &&DROPEFFECT_LINK
OTHERWISE
This.OLEDropHasData = 0 &&DROPHASDATA_NOTUSEFUL
ENDCASE


I don't know what this code mean...i was trying to understand :-)

Thank you again
Alessio
Reply
Map
View

Click here to load this message in the networking platform