Old posting that talks about similar problems created by BeginDrag

Old posting that talks about similar problems created by BeginDrag

Post by Dave Barco » Sat, 01 Jul 2006 01:44:34



I am appending an old posting I found to deal with the onStartDrag
event occuring as soon as the beginDrag method is called. Any other
ideas?

Thanks again

Dave Barcomb



From: Peter Below -
Date: Wed, May 6 1998 12:00 am
Email: Peter Below < XXXX@XXXXX.COM >
Groups: borland.public.delphi.objectpascal


_snip_

Tommy,

change your approach. In the OnMouseDown event, store the mouse position
in a form field, do not call beginDrag yet. In OnMouseMove, if not
already
dragging, check the mouse position an get the distance to the point the
mouse did go down over. If the distance is above the threshhold you
want to
use to distinguish a "true" drag from a spurious wiggle on a click, call
BeginDrag.

Peter Below (TeamB) XXXX@XXXXX.COM )

Reply