Added wxBORDER_THEME and made wxTextCtrl and wxSearchCtrl show the correct borders. Because
we can't add virtual functions because of binary compatibility considerations, we can't make controls intelligent enough to know when they need themed borders. So in 2.8 we have to add wxBORDER_THEME explicitly where necessary. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@47930 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -303,6 +303,10 @@ bool wxTextCtrl::Create(wxWindow *parent,
|
||||
#ifdef __WXWINCE__
|
||||
if ((style & wxBORDER_MASK) == 0)
|
||||
style |= wxBORDER_SIMPLE;
|
||||
#else
|
||||
// Standard text control already handles theming
|
||||
if ((style & (wxTE_RICH|wxTE_RICH2)) && ((style & wxBORDER_MASK) == wxBORDER_DEFAULT))
|
||||
style |= wxBORDER_THEME;
|
||||
#endif
|
||||
|
||||
// base initialization
|
||||
|
||||
Reference in New Issue
Block a user