diff options
author | hobbs <hobbs@noemail.net> | 2002-04-05 08:43:21 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 2002-04-05 08:43:21 (GMT) |
commit | 3af71607001f379705b64481ba5e19419e1ff54d (patch) | |
tree | 55f527c63b4eba804a1795e9c2bce98a3c9cf691 /win/tkWinButton.c | |
parent | 7be9f0647ea6a6ed36c1e9d08e28b095c2df136b (diff) | |
download | tk-3af71607001f379705b64481ba5e19419e1ff54d.zip tk-3af71607001f379705b64481ba5e19419e1ff54d.tar.gz tk-3af71607001f379705b64481ba5e19419e1ff54d.tar.bz2 |
* win/tkWinButton.c (TkpDisplayButton):
* generic/tkTextMark.c (TkTextInsertDisplayProc):
* generic/tkCanvText.c (DisplayCanvText):
* generic/tkEntry.c (DisplayEntry): added Tk_SetCaretPos calls.
FossilOrigin-Name: eb1f6c15c2ec7a1c61a0faeeee4eda55fb73b9c6
Diffstat (limited to 'win/tkWinButton.c')
-rw-r--r-- | win/tkWinButton.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/win/tkWinButton.c b/win/tkWinButton.c index 42cdc3f..a9f19d5 100644 --- a/win/tkWinButton.c +++ b/win/tkWinButton.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: tkWinButton.c,v 1.14 2001/12/29 00:30:30 hobbs Exp $ + * RCS: @(#) $Id: tkWinButton.c,v 1.15 2002/04/05 08:43:22 hobbs Exp $ */ #define OEMRESOURCE @@ -706,6 +706,10 @@ TkpDisplayButton(clientData) TkWinReleaseDrawableDC(pixmap, dc, &state); } + if (butPtr->flags & GOT_FOCUS) { + Tk_SetCaretPos(tkwin, x, y, 0 /* not used */); + } + /* * Copy the information from the off-screen pixmap onto the screen, * then delete the pixmap. |