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