Caret blinking stops after ~5 seconds in wxTextCtrl on Windows (Issue #26662)

19 views
Skip to first unread message

MrWeiCodes

unread,
Jul 7, 2026, 1:39:49 AM (yesterday) Jul 7
to wx-...@googlegroups.com, Subscribed
MrWeiCodes created an issue (wxWidgets/wxWidgets#26662)

Platform and version information

  • wxWidgets version :master (commit 055d882)
  • wxWidgets port:wxMSW
  • OS:Windows 10
  • Controls:wxTextCtrl
  • IDE:Visual Studio 2022

Steps to reproduce

  1. Create a minimal sample with a wxFrame containing a wxTextCtrl (single-line or multi-line).
  2. Run the application.
  3. Focus the wxTextCtrl so the caret appears and starts blinking.
  4. Observe the caret for about 5 seconds without touching the mouse or keyboard.
  5. After roughly 5 seconds the blinking stops. The caret remains visible but no longer alternates between visible and hidden.
  6. Move the mouse slightly or click inside the control – the blinking starts again but stops once more after ~5 seconds.

Code Example:
m_textCtrl1 = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );

Expected behavior

The caret should blink continuously while the wxTextCtrl has focus, regardless of mouse movement or inactivity.

Actual behavior

The caret blinks for approximately 5 seconds and then freezes. It appears to “wake up” only when some input event occurs, only to freeze again shortly after.

Additional information

It seems that all components with a cursor have this issue, including some software built with older versions of wx.

Screenshots / Video

1.gif (view on web)

For example, the list in wxFormBuilder
1.gif (view on web)


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/26662@github.com>

PB

unread,
Jul 7, 2026, 3:34:42 AM (yesterday) Jul 7
to wx-...@googlegroups.com, Subscribed
PBfordev left a comment (wxWidgets/wxWidgets#26662)

This is a native behaviour which can be observed everywhere in Windows at least since v10 (e.g., the file name field in the Open/Save dialog, when renaming a file in Explorer, or typing the command in the Run dialog).

See also e.g. https://superuser.com/questions/1436937/cursor-stops-blinking-after-a-few-seconds-on-windows-10


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/26662/4901290784@github.com>

MrWeiCodes

unread,
Jul 7, 2026, 3:53:35 AM (yesterday) Jul 7
to wx-...@googlegroups.com, Subscribed
MrWeiCodes left a comment (wxWidgets/wxWidgets#26662)

Thanks, this is actually a native Windows behavior, which is really surprising.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/26662/4901431550@github.com>

MrWeiCodes

unread,
Jul 7, 2026, 3:53:39 AM (yesterday) Jul 7
to wx-...@googlegroups.com, Subscribed

Closed #26662 as completed.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issue/26662/issue_event/27651325678@github.com>

Reply all
Reply to author
Forward
0 new messages