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
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user