Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#12417 closed defect (invalid)

wxMessageDialog and wxICON_xxx

Reported by: johnr Owned by:
Priority: normal Milestone: 2.9.2
Component: wxMSW Version: stable-latest
Keywords: wxMessageDialog wxICON_ Cc:
Blocked By: Blocking:
Patch: no

Description

wxICON_QUESTION, wxICON_ERROR and wxICON_HAND do not show with wxMessageDialog in msw.

Reproduce in the dialog sample
MyFrame::MessageBox()
wxMessageDialog dialog(this,

"This is a message box\n"
"This is a long, long string to test out if the message box "
"is laid out properly.",
"Message box text",
wxCENTER |
wxNO_DEFAULT | wxYES_NO | wxCANCEL |
wxICON_QUESTION);wxICON_QUESTION wxICON_ERROR wxICON_HAND

Vista VC++ 2008

Change History (3)

comment:1 follow-up: Changed 11 years ago by vadz

  • Resolution set to invalid
  • Status changed from new to closed

I can see the icons just fine for wxICON_ERROR and wxICON_WARNING and for wxICON_QUESTION the behaviour is intentional and unavoidable: quoting http://docs.wxwidgets.org/trunk/classwx_message_dialog.html:

* 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 MSW task dialogs, as question icons do
not follow the guidelines. No icon will be displayed in this case.

comment:2 in reply to: ↑ 1 Changed 11 years ago by johnr

Replying to vadz:

This style is not supported for MSW task dialogs, as question icons do
not follow the guidelines. No icon will be displayed in this case.

Thanks, this link might be of use to anybody else behind the times with icon style when using confirmation dialogs.
http://msdn.microsoft.com/en-us/library/aa511273.aspx

comment:3 Changed 11 years ago by VZ

(In [65465]) Add a link to Microsoft guidelines from wxICON_QUESTION documentation.

Microsoft documentation provides explanations as to how the icons should be
used in the message dialogs which can be useful for people wondering which
icon style to use an when.

See #12417.

Note: See TracTickets for help on using tickets.