Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Simple drag & drop operation
I am trying to program a drag & drop operation that will allow me to click on a record in a list control and drag it to a textbox control and have it set the textbox control's value to a value from that record.
In my list controls mousedown method I have the this.drag command to start the drag. In my textbox dragdrop method I have this.value = tblJobTicket.JobNum to set the textbox's value property.
The problem I am having is that when I click on a record and drag it to the textbox, the record pointer is not being moved until after the textbox's dragdrop event fires and therefore the textbox's value is not being set to the record that I just drug, but is being set to the record that was previously selected.
Any help on this issue will be greatly appreciated.
Thanks,
Barry
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement