Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Drag and Drop Question
Message
From
29/10/1997 15:38:30
 
 
To
29/10/1997 15:11:03
Edward Crawford
City Facilities Management
Glasgow, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00057264
Message ID:
00057269
Views:
25
>I have two list boxes. One list box has a list of account numbers. The second list box is made up of people associated with each account. If you move to a different account, the people change with the account. I want to be able to click on a person and drag them over to another account and drop them into a different account. The problem is when I drag the item to the other listbox, how can I find out what ListItem the cursor is over so that I know what account to assign this person in the DragDrop method?
>
>-Ed

I was able to get through using two things:
***Target- List1.DragDrop event
mouse click at nYCoord+20,nXCoord pixels
thisform.timer1.enabled=.t.

*** timer1.timer event
wait window thisform.list1.value nowait && it really shows list value for item under the dropped item, so can add your code here to 'reassign' the item
this.enabled=.f.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform