Drag of label with an OnClick event
Posted on 1999-01-13
I have a label that I want to be able to drag from and drop onto another control.
I have the DragMode set to dmManual
In the OnMouseDown event, I do BeginDrag(false).
In StartDrag I do a little processing, and EndDrag do a little more to setup global vars needed for the Drop on the other control.
All of this works fine. The problem is that I also need to do some different processing if the user actually Clicks on the label.
If I define an OnClick event with the above scenario, the OnClick event fires immediately when I hit the MouseDown instead of its normal behaviour of waiting for the mouse to come up.
How can I get around this problem?