Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Drag and Drop Question
Message
De
29/10/1997 15:38:30
 
 
À
29/10/1997 15:11:03
Edward Crawford
City Facilities Management
Glasgow, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00057264
Message ID:
00057269
Vues:
30
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform