Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
VFP 3. Drag 'n' Drop from List box to Edit box
I used the Single form wizard to create a single table data entry form. (Used the 'chiselled' look)
I have also added a list box on the form, (needs to be kept separate, and therefore cannot be bound to the data field of the edit box.)
What I would like to do is this:
Click on a value in the list box, Drag it, and drop it into the Edit box.
In the Mouse Down method of the list box the following code resides
oSource=this.listitem(listitemid)
this.drag(1)
In the Mouse Up method of the Edit box:
this.drag(0)
In the dragdrop method of the Edit Box.
This.value=oSource.value
this.refresh
It doesn't work!
What have I forgot to do?
Thanks in Advance,
Mike
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