wx.MessageDialog() wx.ICON_QUESTION constant not working. Other icons: ERROR, EXCLAMATION and INFO all work. (Issue #26623)

18 views
Skip to first unread message

cblackbu-solodigm

unread,
Jun 22, 2026, 4:19:37 PM (2 days ago) Jun 22
to wx-...@googlegroups.com, Subscribed
cblackbu-solodigm created an issue (wxWidgets/wxWidgets#26623)

Description

When I create a MessageDialog() with a wx.ICON_QUESTION icon, the icon is missing. The other icon options: error, exclamation, and info all work.

Bug description:

I've been coding Windows GUIs for 30 years. I can't name a single development environment that has dialog constants that don't work consistently (Visual Basic, Delphi, Lazarus, C++, C#, AutoIt, VBA, Inno Setup, etc.). The other 3 dialog constants do work: information, exclamation, and error. There's no good reason why the confirmation icon constant shouldn't also be working.

Expected vs observed behaviour:

A question mark icon should be displayed when using the wx.ICON_QUESTION constant.
wxPython.MessageDialog.with.ICON_QUESTION.constant.bug.gif (view on web)

I skimmed the Microsoft style guidline that may have persuaded the current behavior. I see tons of dialogs with icons in them and the following text:
"Clarifications | If the confirmation involves a document, use the document's thumbnail; otherwise, use the feature icon if available, or no icon."

So it sounds like the entire opinion is based on what the term "feature icon" means, Does it mean a "?" icon, possibly. Why should thousands of developers programs stop behaving as expected, because of a suggestion? wx is a multi-platform development environment that strives for symmetry of execution on all supported platforms. There is no benefit to deliberate asymmetry to satisfy a style guide. Did Microsoft remove the confirmation icon constant? No. Does the constant still work? Yes. Does every other major development environment on Windows still support the constant? Yes. Are developers capable of making their own style choices? Yes. Great, then can we please have the expected behavior back?

Stack trace:

This is isn't a crashing issue.

Patch or snippet allowing to reproduce the problem:

I am using wxPython and they told me contact you since the issue is in wxWidgets and not wxpython directly. I have however attached a Python script just long enough to demonstrate the issue.

wx_diag_icon_bug.py

To Reproduce:

Create a dialog and use the confirmation or question constant whatever it's called when working directly with wxWidgets. Notice the absence of the question mark icon.

Platform and version information

  • wxWidgets version: 3.2.9
  • wxWidgets port: Windows
  • OS: Windows 11 25H2


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

VZ

unread,
Jun 22, 2026, 4:25:25 PM (2 days ago) Jun 22
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#26623)

This is the native behaviour. We may or not like it (I personally don't), but this is what wxWidgets provides: wxMessageBox() maps to the native message box, when one is available, and the native message box behaves like this.


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/26623/4772729875@github.com>

VZ

unread,
Jun 22, 2026, 4:25:25 PM (2 days ago) Jun 22
to wx-...@googlegroups.com, Subscribed

Closed #26623 as not planned.


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/26623/issue_event/27062078720@github.com>

cblackbu-solodigm

unread,
Jun 22, 2026, 4:30:03 PM (2 days ago) Jun 22
to wx-...@googlegroups.com, Subscribed
cblackbu-solodigm left a comment (wxWidgets/wxWidgets#26623)

The whole point of this ticket is that it definitely not the native behavior. I listed 8 different Windows development tools, all of which I've used, that are all still capable of displaying a "?" icons in their MessageBoxes. If this isn't your bug then whose is it?


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/26623/4772775823@github.com>

VZ

unread,
Jun 22, 2026, 4:33:02 PM (2 days ago) Jun 22
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#26623)

wxWidgets uses "new style" (Windows 7 or Vista, I think) message box based on the task dialog and this is how it behaves. If you can write (or ask your favourite LLM to write) a small program using Win32 API showing the icon in this box, I promise to fix this bug. Unfortunately I'm quite sure that you won't be able to do it.


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/26623/4772796982@github.com>

VZ

unread,
Jun 22, 2026, 4:43:58 PM (2 days ago) Jun 22
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#26623)

See also #16727 for a much older discussion of the same issue.


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/26623/4772873718@github.com>

christiansblackburn

unread,
Jun 22, 2026, 5:59:19 PM (2 days ago) Jun 22
to wx-...@googlegroups.com, Subscribed
christiansblackburn left a comment (wxWidgets/wxWidgets#26623)

Please see this C-based source code: YesNoDialog.zip

I used GCC (compiler) and the Windows 10 SDK (mt.exe).

Sorry, I would have included a compiled binary, but my enterprise probably would have lost it if I emailed an in-house executable to my personal email. In any case, things are just as I expected the dialogs still work with Windows 7 styles. I even made sure to include a manifest so it would use the newer styles. The icon is definitely there:
YesNoDialog.png (view on web)

Would you please fix this bug?


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/26623/4773446125@github.com>

VZ

unread,
Jun 22, 2026, 6:10:08 PM (2 days ago) Jun 22
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#26623)

Sorry but did you intentionally skip over my comment or just didn't see it? Notably the whole thing about task dialog vs legacy message box?


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/26623/4773516676@github.com>

Reply all
Reply to author
Forward
0 new messages