wxICON_QUESTION broken? Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
MortenMacFly
Experienced Solver
Experienced Solver
Posts: 73
Joined: Thu Feb 09, 2006 8:13 am

wxICON_QUESTION broken?

Post by MortenMacFly »

Dear all,

with the most recent wxWidgets (v3.1.2) my app does not show the question icon anymore. I can reproduce this with the "dialogs" app from the samples folder. Just setup as "Yes/No" and enable the "Question icon". If you let the dialog show the question icon does not appear. For all other cases (Info, Warning, Error) it works as expected.

Any idea why?
User avatar
doublemax
Moderator
Moderator
Posts: 19160
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxICON_QUESTION broken?

Post by doublemax »

From the documentation:
wxICON_QUESTION:
Displays a question mark symbol. This icon is automatically used with wxYES_NO so it's usually unnecessary to specify it explicitly. This style is not supported for message dialogs under wxMSW when a task dialog is used to implement them (i.e. when running under Windows Vista or later) because Microsoft guidelines indicate that no icon should be used for routine confirmations. If it is specified, no icon will be displayed.
https://docs.wxwidgets.org/trunk/classw ... ialog.html
Use the source, Luke!
MortenMacFly
Experienced Solver
Experienced Solver
Posts: 73
Joined: Thu Feb 09, 2006 8:13 am

Re: wxICON_QUESTION broken?

Post by MortenMacFly »

Oh well, that explains things. The link to the reference in to the docs is broken though. Strange that MS seems not to see a question mark for a question, but hey - they surely know why... ;-)

Thank you!
MortenMacFly
Experienced Solver
Experienced Solver
Posts: 73
Joined: Thu Feb 09, 2006 8:13 am

Re: wxICON_QUESTION broken?

Post by MortenMacFly »

...for the reference: I guess the link in the docs could have pointed to:

https://docs.microsoft.com/de-de/dotnet ... ageboxicon

Although its a .NET documentation it is a generic description for Windows...
PB
Part Of The Furniture
Part Of The Furniture
Posts: 4204
Joined: Sun Jan 03, 2010 5:45 pm

Re: wxICON_QUESTION broken?

Post by PB »

Based on some webarchive digging, I believe this is what the link in wxWidgets documentation should point to now
https://docs.microsoft.com/en-us/window ... ss-confirm

I will submit a PR to fix that.
Post Reply