Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Drag and Drop
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00019189
Message ID:
00019204
Vues:
38
>How can I drag a single list item out of a list box? When I set dragmode to .T. in the listbox, the whole list box gets selected on a mouse down.
>
>Thanks for any help,
>Greg Cummines

You have to elaborate following algorithm:
1. In ListBox.MouseDown event check that user started to drag item, use Value/Listindex property to figure out what item should be dragged.
2. Change MouseIcon and check MouseUp event of the object you expect to receive the item. If this event fired, change MouseIcon back, delete item from the ListBox and add item to the receiving object.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform