Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TreeView and ImageList Controls in VFP6.0
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00129363
Message ID:
00129931
Vues:
30
>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 ---
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform