Added wxBORDER_THEME, wxWindow::GetDefaultBorderForControl(), wxWindow::CanApplyThemeBorder().
wxTextCtrl and wxSearchCtrl now get the correct border on wxMSW, and the wxRichTextCtrl sample also now demonstrates correct borders. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47927 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -325,6 +325,12 @@ bool wxSearchCtrl::Create(wxWindow *parent, wxWindowID id,
|
||||
style &= ~wxBORDER_MASK;
|
||||
#ifdef __WXGTK__
|
||||
style |= wxBORDER_SUNKEN;
|
||||
#elif defined(__WXMSW__)
|
||||
// Don't set the style explicitly, let GetDefaultBorder() work it out, unless
|
||||
// we will get a sunken border (e.g. on Windows 200) in which case we must
|
||||
// override with a simple border.
|
||||
if (GetDefaultBorder() == wxBORDER_SUNKEN)
|
||||
style |= wxBORDER_SIMPLE;
|
||||
#else
|
||||
style |= wxBORDER_SIMPLE;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user