Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Drag and Drop
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00019189
Message ID:
00019204
Views:
36
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform