Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP 3. Drag 'n' Drop from List box to Edit box
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
VFP 3. Drag 'n' Drop from List box to Edit box
Divers
Thread ID:
00062594
Message ID:
00062594
Vues:
162
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
Fil
Voir

Click here to load this message in the networking platform