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.
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.
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?
This is isn't a crashing issue.
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.
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.
—
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.![]()
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.![]()
—
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.![]()
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.![]()
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.![]()
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.![]()
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.![]()
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.![]()