From: Vadim Zeitlin Date: Sat, 17 Sep 2011 11:06:11 +0000 (+0000) Subject: Change wxDIALOG_NO_PARENT to avoid clash with wxICON_EXCLAMATION. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/32a925f832ce34ee19c013e7aa025178e0a6eb27?ds=inline Change wxDIALOG_NO_PARENT to avoid clash with wxICON_EXCLAMATION. Use 0x20 (wxAPPLY) instead of 0x100 (wxICON_EXCLAMATION) for wxDIALOG_NO_PARENT as otherwise using wxICON_EXCLAMATION with wxMessageBox in wxGTK (and possibly other ports, although not wxMSW which doesn't honour wxDIALOG_NO_PARENT for message boxes at all) resulted in not using the specified parent for the message box and, as a side effect, not centering it on its parent neither. Closes #13464. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69112 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/docs/changes.txt b/docs/changes.txt index e80e5e619b..94685943d6 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -481,6 +481,7 @@ OSX: GTK: - Generate events for two auxiliary mouse buttons in wxGTK (Marcin Wojdyr). +- Fix conflict between wxDIALOG_NO_PARENT and wxICON_EXCLAMATION (David Hart). MSW: diff --git a/include/wx/dialog.h b/include/wx/dialog.h index 1c19e24c87..1a602c9f96 100644 --- a/include/wx/dialog.h +++ b/include/wx/dialog.h @@ -26,7 +26,7 @@ class wxTextSizerWrapper; // Also see the bit summary table in wx/toplevel.h. -#define wxDIALOG_NO_PARENT 0x0100 // Don't make owned by apps top window +#define wxDIALOG_NO_PARENT 0x00000020 // Don't make owned by apps top window #ifdef __WXWINCE__ #define wxDEFAULT_DIALOG_STYLE (wxCAPTION | wxMAXIMIZE | wxCLOSE_BOX | wxNO_BORDER) diff --git a/include/wx/toplevel.h b/include/wx/toplevel.h index 28a56fe596..1e49a42dd9 100644 --- a/include/wx/toplevel.h +++ b/include/wx/toplevel.h @@ -45,10 +45,10 @@ class WXDLLIMPEXP_FWD_CORE wxTopLevelWindowBase; | | | | | | | | | | | | | \_______ wxFRAME_TOOL_WINDOW | | | | | | | | | | | | \__________ wxFRAME_FLOAT_ON_PARENT | | | | | | | | | | | \_____________ wxFRAME_SHAPED - | | | | | | | | | | \________________ + | | | | | | | | | | \________________ wxDIALOG_NO_PARENT | | | | | | | | | \___________________ wxRESIZE_BORDER | | | | | | | | \______________________ wxTINY_CAPTION_VERT - | | | | | | | \_________________________ wxDIALOG_NO_PARENT + | | | | | | | \_________________________ | | | | | | \____________________________ wxMAXIMIZE_BOX | | | | | \_______________________________ wxMINIMIZE_BOX | | | | \__________________________________ wxSYSTEM_MENU