fixed the button alignment flags

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16931 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-09-02 12:29:44 +00:00
parent a696db453c
commit c049568782

View File

@@ -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;
}