use wxRA_SPECIFY_COLS/ROWS instead of old, deprecated and confusing wxRA_HORIZONTAL/VERTICAL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60885 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -147,11 +147,11 @@ bool wxRadioBox::Create(wxWindow *parent,
|
||||
if ( !(style & (wxRA_LEFTTORIGHT | wxRA_TOPTOBOTTOM)) )
|
||||
{
|
||||
// horizontal radiobox use left to right layout
|
||||
if ( style & wxRA_HORIZONTAL )
|
||||
if ( style & wxRA_SPECIFY_COLS )
|
||||
{
|
||||
style |= wxRA_LEFTTORIGHT;
|
||||
}
|
||||
else if ( style & wxRA_VERTICAL )
|
||||
else if ( style & wxRA_SPECIFY_ROWS )
|
||||
{
|
||||
style |= wxRA_TOPTOBOTTOM;
|
||||
}
|
||||
@@ -160,7 +160,7 @@ bool wxRadioBox::Create(wxWindow *parent,
|
||||
wxFAIL_MSG( _T("you must specify wxRA_XXX style!") );
|
||||
|
||||
// use default
|
||||
style = wxRA_HORIZONTAL | wxRA_LEFTTORIGHT;
|
||||
style = wxRA_SPECIFY_COLS | wxRA_LEFTTORIGHT;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user