General information
Category:
Coding, syntax & commands
Title:
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only