Announce generic wxInfoBar messages to screen readers (PR #27053)

5 views
Skip to first unread message

Quin Gillespie

unread,
Sep 21, 2026, 6:00:13 PM (18 hours ago) Sep 21
to wx-...@googlegroups.com, Subscribed

When the generic wxInfoBar showed a message, screen readers said nothing, so their users did not know it had appeared.

The info bar now has the alert accessible role with the message as its name, and sends an alert event every time ShowMessage() is called. NVDA reads the message when it is shown, and also when a new message is shown while the bar is already visible.

Tested with NVDA on Windows 11.


You can view, comment on, or merge this pull request online at:

  https://github.com/wxWidgets/wxWidgets/pull/27053

Commit Summary

  • 2023422 Add screen reader announcement when generic wxInfoBar shows a message

File Changes

(2 files)

Patch Links:


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/pull/27053@github.com>

VZ

unread,
Sep 21, 2026, 8:33:42 PM (16 hours ago) Sep 21
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#27053)

Nice! This is less generic but simpler than the announcement API I mentioned elsewhere, so let's do this, at least for now.

Will merge too soon.


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/pull/27053/c5769559927@github.com>

Quin Gillespie

unread,
Sep 21, 2026, 8:40:38 PM (16 hours ago) Sep 21
to wx-...@googlegroups.com, Subscribed
trypsynth left a comment (wxWidgets/wxWidgets#27053)

Thanks! I think it would be worth keeping the alert role even once we have an announcement API, though. Besides announcing the message when it appears, it also tells screen reader users what the bar is when they Tab into it later ("This is an info bar message, alert"), which an announcement alone can't do. Native Windows applications, such as Settings, announce their info bars when they appear too, so users expect this behaviour.


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/pull/27053/c5769612234@github.com>

VZ

unread,
Sep 21, 2026, 8:47:06 PM (16 hours ago) Sep 21
to wx-...@googlegroups.com, Subscribed

Closed #27053 via b841d3c.


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/pull/27053/issue_event/31568223879@github.com>

Reply all
Reply to author
Forward
0 new messages