From: Vadim Zeitlin Date: Sun, 27 Nov 2011 19:50:45 +0000 (+0000) Subject: Change value of wxHELP to avoid clash with wxSTAY_ON_TOP. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e65ae1d36dbf4070cdb579f04849a7afae1341a3 Change value of wxHELP to avoid clash with wxSTAY_ON_TOP. Using wxSTAY_ON_TOP with wxMessageDialog resulted in "Help" button appearing since r68537 because these two constants had the same numeric value. Avoid this by changing wxHELP value to be the same as wxCLOSE_BOX instead: the latter can't be used with wxMessageDialog so this should solve the problem, even if there are still conflicts. Also adjust the other button constants values to account for wxHELP change. Closes #13433. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69842 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/defs.h b/include/wx/defs.h index 5376facc9d..edd0e9b5a0 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -1953,12 +1953,12 @@ enum wxBorder #define wxICON_STOP wxICON_HAND #define wxICON_ASTERISK wxICON_INFORMATION -#define wxFORWARD 0x00001000 -#define wxBACKWARD 0x00002000 -#define wxRESET 0x00004000 -#define wxHELP 0x00008000 -#define wxMORE 0x00010000 -#define wxSETUP 0x00020000 +#define wxHELP 0x00001000 +#define wxFORWARD 0x00002000 +#define wxBACKWARD 0x00004000 +#define wxRESET 0x00008000 +#define wxMORE 0x00010000 +#define wxSETUP 0x00020000 #define wxICON_NONE 0x00040000 #define wxICON_MASK \ diff --git a/include/wx/toplevel.h b/include/wx/toplevel.h index 4ce0e67683..f57d7b8894 100644 --- a/include/wx/toplevel.h +++ b/include/wx/toplevel.h @@ -70,14 +70,14 @@ class WXDLLIMPEXP_FWD_CORE wxTopLevelWindowBase; #define wxICONIZE 0x4000 #define wxMINIMIZE wxICONIZE #define wxMAXIMIZE 0x2000 -#define wxCLOSE_BOX 0x1000 +#define wxCLOSE_BOX 0x1000 // == wxHELP so can't be used with it #define wxSYSTEM_MENU 0x0800 #define wxMINIMIZE_BOX 0x0400 #define wxMAXIMIZE_BOX 0x0200 #define wxTINY_CAPTION 0x0080 // clashes with wxNO_DEFAULT -#define wxRESIZE_BORDER 0x0040 +#define wxRESIZE_BORDER 0x0040 // == wxCLOSE #if WXWIN_COMPATIBILITY_2_8 // HORIZ and VERT styles are equivalent anyhow so don't use different names diff --git a/interface/wx/defs.h b/interface/wx/defs.h index 1e3dbc59db..e8c1a10387 100644 --- a/interface/wx/defs.h +++ b/interface/wx/defs.h @@ -479,12 +479,12 @@ enum wxBorder #define wxICON_STOP wxICON_HAND #define wxICON_ASTERISK wxICON_INFORMATION -#define wxFORWARD 0x00001000 -#define wxBACKWARD 0x00002000 -#define wxRESET 0x00004000 -#define wxHELP 0x00008000 -#define wxMORE 0x00010000 -#define wxSETUP 0x00020000 +#define wxHELP 0x00001000 +#define wxFORWARD 0x00002000 +#define wxBACKWARD 0x00004000 +#define wxRESET 0x00008000 +#define wxMORE 0x00010000 +#define wxSETUP 0x00020000 #define wxICON_NONE 0x00040000 #define wxICON_MASK \