Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 3. Drag 'n' Drop from List box to Edit box
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
VFP 3. Drag 'n' Drop from List box to Edit box
Miscellaneous
Thread ID:
00062594
Message ID:
00062594
Views:
167
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
Map
View

Click here to load this message in the networking platform