Patch - Untested - Move mouse caret when selecting text

Steven Edwards steven_ed4153 at yahoo.com
Sun Aug 25 04:06:33 CDT 2002


Changelog:    "Zoltán_Nagy" <nagyzoli at netelek.hu>
controls/edit.c
If you select a text area width mouse, then caret is not moved (like Windows).
The follow code solution the problem:

cvs diff -u edit.c 
Index: edit.c
===================================================================
RCS file: /home/wine/wine/controls/edit.c,v
retrieving revision 1.99
diff -u -r1.99 edit.c
--- edit.c	20 Aug 2002 00:24:17 -0000	1.99
+++ edit.c	25 Aug 2002 08:59:57 -0000
@@ -4415,6 +4415,7 @@
 	es->region_posy = (prey < y) ? -1 : ((prey > y) ? 1 : 0);
 	e = EDIT_CharFromPos(hwnd, es, x, y, &after_wrap);
 	EDIT_EM_SetSel(hwnd, es, es->selection_start, e, after_wrap);
+	EDIT_SetCaretPos(hwnd,es,es->selection_end,es->flags & EF_AFTER_WRAP);
 	return 0;
 }


__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com



More information about the wine-patches mailing list