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.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
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.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
So why wxRichMessageDialog, which derived from this, is working properly? It does show appropriate icons on both Mac and Linux.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
On these platforms wxRichMessageDialog uses a generic implementation not using the native dialog.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
This probably should be documented.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
On related issue: I started using wxRichMessageDialog, something like this:
wxRichMessageDialog dialog (this,
wxT("Mesh file exists! Proceed to overwrite?"),
wxT("Please confirm"),
wxYES_NO|wxCENTRE|wxICON_HAND);
dialog.ShowModal() returns 5103 on YES and 5104 on NO, while I thing 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?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
No, this is not a bug, the dialog returns wxID_YES and wxID_NO, just as wxMessageDialog does.
This is already documented:
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.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Got it! Thanks!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Closed #23353 as completed via c202385.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()