Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tree Control
Message
From
09/04/1999 00:12:04
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Miscellaneous
Thread ID:
00206274
Message ID:
00206782
Views:
32
Hmmm....Hi David ---

Sounds like OLE drag-drop code would come to the rescue. The code says that if someone drags something over the Treeview, highlight the row that the object to be dropped is over. If you subclass a TreeView control in VFP, I think (not sure) that you gain control over Drag and Drop functionality and can write the appropriate VFP code. If not, you can put the TreeView into a Container and dupe the code using the container Drag and Drap methods/events.

This assumes VFP 6, though.


>I'm looking for help to translate this code for FoxPro. I'm having trouble setting the DropHighlight property.
>If anyone knows of any good help systems for ActiveX designed for Visual FoxPro, I would appreciate it if you would let me know.
>
>Thanks
>******
>Private Sub TreeView1_DragOver(Source As Control, x As Single, y As Single, State As Integer)
> If indrag = True Then
> ' Set DropHighlight to the mouse's coordinates.
> Set TreeView1.DropHighlight = TreeView1.HitTest(x, y)
> End If
>End Sub
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Reply
Map
View

Click here to load this message in the networking platform