From c049568782478d4281ab7e5d0cec7d067cb9ca61 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 2 Sep 2002 12:29:44 +0000 Subject: [PATCH] fixed the button alignment flags git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16931 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/widgets/button.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/samples/widgets/button.cpp b/samples/widgets/button.cpp index c04855340c..0652f1c7a6 100644 --- a/samples/widgets/button.cpp +++ b/samples/widgets/button.cpp @@ -280,7 +280,7 @@ void ButtonWidgetsPage::CreateButton() switch ( m_radioHAlign->GetSelection() ) { case ButtonHAlign_Left: - flags |= wxALIGN_LEFT; + flags |= wxBU_LEFT; break; default: @@ -288,18 +288,17 @@ void ButtonWidgetsPage::CreateButton() // fall through case ButtonHAlign_Centre: - flags |= wxALIGN_CENTRE_HORIZONTAL; break; case ButtonHAlign_Right: - flags |= wxALIGN_RIGHT; + flags |= wxBU_RIGHT; break; } switch ( m_radioVAlign->GetSelection() ) { case ButtonVAlign_Top: - flags |= wxALIGN_TOP; + flags |= wxBU_TOP; break; default: @@ -311,7 +310,7 @@ void ButtonWidgetsPage::CreateButton() break; case ButtonVAlign_Bottom: - flags |= wxALIGN_BOTTOM; + flags |= wxBU_BOTTOM; break; } -- 2.45.2