>Are you having any success with drag&drop within the Treeview control? I am trying to provide a way to rearrange items and am finding that most things work except that the target item is about two items below from the mouse cursor, even when I try to factor a two-line adjustment into the hittest calculations.
Yeah, works great, with only a few lines of code using OLE Drag & Drop.
>Most frustrating for the user to see the mouse in one place and the highlighted item trailing behind: which does he believe?
There are two issues. One is that in order to drag an item it has to be
selected first. The way most people use D&D though, you simply grab the
item and drag. In VFP this means you're actually dragging the previously
selected item unless you use HitTest on DragStart and physically force
the current item to select.
If you're getting the wrong nodes than your Twips conversion is likely
off.
+++ Rick ---