Add support for wxHELP button to wxMessageDialog.
Implement support for wxHELP for wxMSW, wxGTK and wxOSX/Cocoa (at least when showing the message box from the main thread, there doesn't seem to be any way to show more than three buttons with CFUserNotificationDisplayAlert() so "Help" button is not supported when using it). This is useful not only on its own, i.e. to allow the user to ask for help, but also because it brings the total number of buttons supported by the message dialog to 4, meaning that more choices can be offered to the user (which is rarely, but not quite never, useful). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68537 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1361,6 +1361,8 @@ int wxMessageBox(const wxString& message, const wxString& caption, long style,
|
||||
return wxNO;
|
||||
case wxID_CANCEL:
|
||||
return wxCANCEL;
|
||||
case wxID_HELP:
|
||||
return wxHELP;
|
||||
}
|
||||
|
||||
wxFAIL_MSG( wxT("unexpected return code from wxMessageDialog") );
|
||||
|
Reference in New Issue
Block a user