From 8ae6ce07de7a5e9dde887ef82a69606108c5e09b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 3 Feb 2000 12:20:34 +0000 Subject: [PATCH] fixed bug with propagating wxWS_EX_VALIDATE_RECURSIVELY git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5823 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/wincmn.cpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index 1cbe67838f..4df298217e 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -176,15 +176,6 @@ bool wxWindowBase::CreateBase(wxWindowBase *parent, m_windowId = id == -1 ? NewControlId() : id; SetName(name); - - // if the parent window has wxWS_EX_VALIDATE_RECURSIVELY set, we want to - // have it too - like this it's possible to set it only in the top level - // dialog/frame and all children will inherit it by defult - if ( parent && (parent->GetWindowStyle() & wxWS_EX_VALIDATE_RECURSIVELY) ) - { - style |= wxWS_EX_VALIDATE_RECURSIVELY; - } - SetWindowStyleFlag(style); SetParent(parent); @@ -192,6 +183,14 @@ bool wxWindowBase::CreateBase(wxWindowBase *parent, SetValidator(validator); #endif // wxUSE_VALIDATORS + // if the parent window has wxWS_EX_VALIDATE_RECURSIVELY set, we want to + // have it too - like this it's possible to set it only in the top level + // dialog/frame and all children will inherit it by defult + if ( parent && (parent->GetExtraStyle() & wxWS_EX_VALIDATE_RECURSIVELY) ) + { + SetExtraStyle(wxWS_EX_VALIDATE_RECURSIVELY); + } + return TRUE; } -- 2.47.2