-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wxMessageDialog does show wrong icon (or not showing at all) #23353
Comments
The lack of icon in GTK is due to GTK theme not using icons. Unfortunately GTK doesn't use icons almost anywhere any more and while you can override it, you probably shouldn't do it to avoid making your application inconsistent with all the other ones on the system. Under Mac message box shows the application icon because this is what the platform UI standard insists on. IOW this isn't a bug, the behaviour just conforms to the native UI, as it's supposed to, but this should arguably be better documented as it's not really obvious. |
So why wxRichMessageDialog, which derived from this, is working properly? It does show appropriate icons on both Mac and Linux. |
On these platforms |
This probably should be documented. |
On related issue: I started using wxRichMessageDialog, something like this:
dialog.ShowModal() returns 5103 on YES and 5104 on NO, while I think the values should be 2 (wxYES) and 8 (wxNO). This is on both Mac and Linux. I could hard code these - but is it a bug - or I am doing something wrong here? |
No, this is not a bug, the dialog returns This is already documented: wxWidgets/interface/wx/msgdlg.h Lines 266 to 267 in 8ad0f52
which just goes to show that documenting things is not always enough... But yes, it should still be done for the icons. P.S. Please open separate issues for other problems. |
Got it! Thanks! |
wxMessageDialog does not show icons correctly, on Mac and some Linux systems (I am using RedHat toss3). See forum discussion at
https://forums.wxwidgets.org/viewtopic.php?f=23&t=50220&p=217951#p217951
Note, that wxRichMessageDialog is fine.
The text was updated successfully, but these errors were encountered: