Change wxDIALOG_NO_PARENT value to avoid clashing with wxCENTRE.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 10 May 2010 21:10:03 +0000 (21:10 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 10 May 2010 21:10:03 +0000 (21:10 +0000)
commit654e324628ea1efc6dff6e5b494129931115f773
tree4c60465088dd95958e2a389cc5a11478a25d2f44
parent7282b0678a879077a109495cb3cd20b28ea9cf45
Change wxDIALOG_NO_PARENT value to avoid clashing with wxCENTRE.

Use a bit freed by removing wxTINY_CAPTION_HORIZ for wxDIALOG_NO_PARENT. This
allows to move it out from the lower byte of the style word to avoid conflicts
with the button selection flags which can be commonly combined with the dialog
styles.

More precisely, wxDIALOG_NO_PARENT used to clash with wxCENTRE, meaning that
wxSingleChoiceDialog, for example, was always created without parent because
its default style included wxCENTRE. This commit fixes this particular bug and
probably more similar ones.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64280 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/dialog.h
include/wx/toplevel.h