Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Drag and Drop in TreeView
Message
From
24/01/2001 11:44:37
 
 
To
24/01/2001 00:25:07
Linn Kubler
Chartwell Midwest Wisconsin
Middleton, Wisconsin, United States
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00467151
Message ID:
00467933
Views:
22
Hi Linn.

>So now I can initiate a drag operation but I can't figure out how to make the other node objects highlight as I drag over them.

You'll need to use VFP 6, since this doesn't work correctly in VFP 5. Set the DropHighlight property of the TreeView to the node the mouse is currently over in the DragOver event of the TreeView. Use HitTest to get the node for the X and Y coordinates passed to DragOver. In DragDrop, set DropHightlight to .NULL.

By the way, are you using the proper twips to pixels factors to convert the X and Y coordinates used by HitTest? If not, download my white paper on ActiveX controls (including the TreeView) from the Technical Papers page of www.stonefield.com for details. This might be the source of other problems you're running into.

Doug
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform