John Ehresman:

There's a function gtk_drag_check_threshold to check this.  Using this
will require saving the position of the pointer down event, which wasn't
readily available the last time I looked at this.

  ptMouseLast can be reused for this as long as it isn't updated
until the drag really starts. The inDragDrop boolean now becomes an
enum { ddNone, ddInitial, ddDragging }. It changes to ddInitial when
you mouse down inside the selection and then to ddDragging after the
threshold has been passed. There's a new virtual method
Editor::DragThreshold that determines this which defaults to a move of
4 pixels but should be overridden by the platform
(gtk_drag_check_threshold isn't available for GTK+ 1.x).

  On GTK+, the drag_motion event handler detects that a drag is over
the selection being dragged so presents the "no action" cursor which
leads to GTK+ showing a "no drag" animation if the mouse button is
released.

  Committed to CVS and available from
http://scintilla.sourceforge.net/scite.zip Source
http://scintilla.sourceforge.net/wscite.zip Windows executable

  Neil
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to