Guest_imported
New member
- Jan 1, 1970
- 0
Hi,I have a big drag and drop problem and I really can't figure how to solve it.
I have a dblookuplist box displaying the 'name' field of a dataset. The OnMouseDown event is: listbox1.begindrag(false). so that the user can drag a name out of the box. This was working fine until I added a OnDblClick event: form2.ShowModal.
The form 2 displays correctly, the user can clicks on OK. Now we get into trouble. The lisbox thinks we are in a drag operation since the onMouseDown event seemed to be triggered when we double click. After closing the modal form, the onstartdrag event is triggered when the user moves the mouse a little bit...
It's hard to explain. It seems that the modal form takes control of the program and then when you press OK, the listbox think you are dragging the object...Hope you understand.
Thanks
Dave [sig][/sig]
I have a dblookuplist box displaying the 'name' field of a dataset. The OnMouseDown event is: listbox1.begindrag(false). so that the user can drag a name out of the box. This was working fine until I added a OnDblClick event: form2.ShowModal.
The form 2 displays correctly, the user can clicks on OK. Now we get into trouble. The lisbox thinks we are in a drag operation since the onMouseDown event seemed to be triggered when we double click. After closing the modal form, the onstartdrag event is triggered when the user moves the mouse a little bit...
It's hard to explain. It seems that the modal form takes control of the program and then when you press OK, the listbox think you are dragging the object...Hope you understand.
Thanks
Dave [sig][/sig]