Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Drag & Drop on Treeviews
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Drag & Drop on Treeviews
Miscellaneous
Thread ID:
00561133
Message ID:
00561133
Views:
67
Hi,

I am trying to implement drag & drop on a treeview control. I am using VFP 7.0 with MS Treeview Control 6.0 (SP4).

I am implementing the following methods:

Treeview::OLEStartDrag
*** ActiveX Control Event ***
LPARAMETERS data, allowedeffects

this.selectedItem = null


Treeview::OLEDragOver

*** ActiveX Control Event ***
LPARAMETERS data, effect, button, shift, x, y, state

IF ISNULL(this.selectedItem)
  this.selecteditem = this.hittest(x, y)
ENDIF

this.dropHighlight = this.hitTest(x, y)
The main drag & drop funtionality is working properly, but the method OLEDragOver, which is intented to highlight the nodes as the user passes the mouse over them while dragging is not highlighting the nodes.

Does anyone has any hint?
-----
Fabio Vazquez
http://www.fabiovazquez.com
Next
Reply
Map
View

Click here to load this message in the networking platform