From d237bb075312c32e726ba35a7c22507c4a3d35ca Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 13 Jul 2008 17:31:41 +0000 Subject: [PATCH] correct wrong example of using wxSizerFlags::Border() (#9699) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- interface/wx/sizer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interface/wx/sizer.h b/interface/wx/sizer.h index 7140ec3148..00832d4763 100644 --- a/interface/wx/sizer.h +++ b/interface/wx/sizer.h @@ -333,7 +333,7 @@ public: you can now write @code - sizer->Add(ctrl, wxSizerFlags().Expand().Border(10)); + sizer->Add(ctrl, wxSizerFlags().Expand().Border(wxALL, 10)); @endcode This is more readable and also allows you to create wxSizerFlags objects which @@ -341,7 +341,7 @@ public: @code wxSizerFlags flagsExpand(1); - flagsExpand.Expand().Border(10); + flagsExpand.Expand().Border(wxALL, 10); sizer->Add(ctrl1, flagsExpand); sizer->Add(ctrl2, flagsExpand); -- 2.45.2