From 0e722a20e79532e867aa3a273978a888416f1bc7 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 10 Sep 2014 16:51:51 +0000 Subject: [PATCH] Set layout direction for all wxCompositeWindow parts. Forward SetLayoutDirection() to both the base class and all the children, just as we already do for the other setters. See #11583. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77660 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/compositewin.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/wx/compositewin.h b/include/wx/compositewin.h index ebf631c47c..f3ead9a14c 100644 --- a/include/wx/compositewin.h +++ b/include/wx/compositewin.h @@ -94,6 +94,13 @@ public: return true; } + virtual void SetLayoutDirection(wxLayoutDirection dir) + { + BaseWindowClass::SetLayoutDirection(dir); + + SetForAllParts(&wxWindowBase::SetLayoutDirection, dir); + } + #if wxUSE_TOOLTIPS virtual void DoSetToolTip(wxToolTip *tip) {