[1/4] richedit: Fixed drag and shift selection for words and lines. [try 2]

Dylan Smith dylan.ah.smith at gmail.com
Mon Jul 7 10:03:53 CDT 2008

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

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.

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   |  160 +++++++++++++++++++++++++++++++----------------
 dlls/riched20/editor.c  |   17 ++++-
 dlls/riched20/editstr.h |    9 +++-
 3 files changed, 128 insertions(+), 58 deletions(-)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-richedit-Fixed-drag-and-shift-selection-for-word.diff.txt
Url: http://www.winehq.org/pipermail/wine-patches/attachments/20080707/2c7f672e/attachment.txt 

More information about the wine-patches mailing list