Patch - Untested - Move mouse caret when selecting text

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Changelog:    "Zoltán_Nagy" <nagyzoli@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


[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux