summaryrefslogtreecommitdiffstats
path: root/generic/tkCanvText.c
diff options
context:
space:
mode:
authorhobbs <hobbs>2002-04-05 08:43:22 (GMT)
committerhobbs <hobbs>2002-04-05 08:43:22 (GMT)
commitedf6ae717ffa12d49b2c5163c7d44c7fa3693020 (patch)
tree55f527c63b4eba804a1795e9c2bce98a3c9cf691 /generic/tkCanvText.c
parent418747a5b52e2e7ce5996ae49861c7904bc77197 (diff)
downloadtk-edf6ae717ffa12d49b2c5163c7d44c7fa3693020.zip
tk-edf6ae717ffa12d49b2c5163c7d44c7fa3693020.tar.gz
tk-edf6ae717ffa12d49b2c5163c7d44c7fa3693020.tar.bz2
* win/tkWinButton.c (TkpDisplayButton):
* generic/tkTextMark.c (TkTextInsertDisplayProc): * generic/tkCanvText.c (DisplayCanvText): * generic/tkEntry.c (DisplayEntry): added Tk_SetCaretPos calls.
Diffstat (limited to 'generic/tkCanvText.c')
-rw-r--r--generic/tkCanvText.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tkCanvText.c b/generic/tkCanvText.c
index f8d0d7b..63ed827 100644
--- a/generic/tkCanvText.c
+++ b/generic/tkCanvText.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkCanvText.c,v 1.11 2002/01/17 03:35:00 dgp Exp $
+ * RCS: @(#) $Id: tkCanvText.c,v 1.12 2002/04/05 08:43:22 hobbs Exp $
*/
#include <stdio.h>
@@ -828,6 +828,8 @@ DisplayCanvText(canvas, itemPtr, display, drawable, x, y, width, height)
- (textInfoPtr->insertWidth / 2)),
(double) (textPtr->header.y1 + y),
&drawableX, &drawableY);
+ Tk_SetCaretPos(Tk_CanvasTkwin(canvas), drawableX, drawableY,
+ height);
if (textInfoPtr->cursorOn) {
Tk_Fill3DRectangle(Tk_CanvasTkwin(canvas), drawable,
textInfoPtr->insertBorder,