[3/6] richedit: Fixed drag and shift selection for words and lines.

Dylan Smith dylan.ah.smith at gmail.com
Sat Jul 5 03:24:01 CDT 2008

Drag line selection can be tested by clicking on the selectionbar (the
space to the left of the text) in wordpad, and draging the mouse over
other lines.  Only full lines should be selected.

Drag word selection is done by double clicking on a word, then dragging
the mouse. Only full words should be selected.

Shift selection can be tested by selecting a line or a word in the way
mentioned above, releasing the mouse button, and clicking on another
part of the text while holding shift.

Previously word drag and shift selection was not implemented.  Line
drag selection was working, but shift selection wasn't.

This patch fixes the above mentioned issues by storing the selection
type, and implementing a common function for extending the selection
based on the selection type.  Some line selection specific code was
adapted, removed or moved in the process.
 dlls/riched20/caret.c   |  150 ++++++++++++++++++++++++++++++-----------------
 dlls/riched20/editor.c  |   17 ++++-
 dlls/riched20/editstr.h |    9 +++-
 3 files changed, 116 insertions(+), 60 deletions(-)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0003-richedit-Fixed-drag-and-shift-selection-for-word.diff.txt
Url: http://www.winehq.org/pipermail/wine-patches/attachments/20080705/b33aa722/attachment.txt 

More information about the wine-patches mailing list