int n = 0,
const wxString choices[] = (const wxString *) NULL,
int majorDim = 0,
- long style = wxRA_HORIZONTAL,
+ long style = wxRA_SPECIFY_COLS,
const wxValidator& val = wxDefaultValidator,
const wxString& name = wxRadioBoxNameStr)
{
const wxSize& size,
const wxArrayString& choices,
int majorDim = 0,
- long style = wxRA_HORIZONTAL,
+ long style = wxRA_SPECIFY_COLS,
const wxValidator& val = wxDefaultValidator,
const wxString& name = wxRadioBoxNameStr)
{
int n = 0,
const wxString choices[] = (const wxString *) NULL,
int majorDim = 0,
- long style = wxRA_HORIZONTAL,
+ long style = wxRA_SPECIFY_COLS,
const wxValidator& val = wxDefaultValidator,
const wxString& name = wxRadioBoxNameStr);
bool Create(wxWindow *parent,
const wxSize& size,
const wxArrayString& choices,
int majorDim = 0,
- long style = wxRA_HORIZONTAL,
+ long style = wxRA_SPECIFY_COLS,
const wxValidator& val = wxDefaultValidator,
const wxString& name = wxRadioBoxNameStr);
int n = 0,
const wxString choices[] = (const wxString *) NULL,
int majorDim = 1,
- long style = wxRA_HORIZONTAL,
+ long style = wxRA_SPECIFY_COLS,
const wxValidator& val = wxDefaultValidator,
const wxString& name = wxRadioBoxNameStr)
{
const wxSize& size,
const wxArrayString& choices,
int majorDim = 1,
- long style = wxRA_HORIZONTAL,
+ long style = wxRA_SPECIFY_COLS,
const wxValidator& val = wxDefaultValidator,
const wxString& name = wxRadioBoxNameStr)
{
int n = 0,
const wxString choices[] = (const wxString *) NULL,
int majorDim = 0,
- long style = wxRA_HORIZONTAL,
+ long style = wxRA_SPECIFY_COLS,
const wxValidator& val = wxDefaultValidator,
const wxString& name = wxRadioBoxNameStr);
bool Create(wxWindow *parent,
const wxSize& size,
const wxArrayString& choices,
int majorDim = 0,
- long style = wxRA_HORIZONTAL,
+ long style = wxRA_SPECIFY_COLS,
const wxValidator& val = wxDefaultValidator,
const wxString& name = wxRadioBoxNameStr);
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
int n = 0, const wxString choices[] = NULL,
- int majorDim = 0, long style = wxRA_HORIZONTAL,
+ int majorDim = 0, long style = wxRA_SPECIFY_COLS,
const wxValidator& val = wxDefaultValidator,
const wxString& name = wxRadioBoxNameStr)
{
const wxPoint& pos,
const wxSize& size,
const wxArrayString& choices,
- int majorDim = 0, long style = wxRA_HORIZONTAL,
+ int majorDim = 0, long style = wxRA_SPECIFY_COLS,
const wxValidator& val = wxDefaultValidator,
const wxString& name = wxRadioBoxNameStr)
{
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
int n = 0, const wxString choices[] = NULL,
- int majorDim = 0, long style = wxRA_HORIZONTAL,
+ int majorDim = 0, long style = wxRA_SPECIFY_COLS,
const wxValidator& val = wxDefaultValidator,
const wxString& name = wxRadioBoxNameStr);
const wxPoint& pos,
const wxSize& size,
const wxArrayString& choices,
- int majorDim = 0, long style = wxRA_HORIZONTAL,
+ int majorDim = 0, long style = wxRA_SPECIFY_COLS,
const wxValidator& val = wxDefaultValidator,
const wxString& name = wxRadioBoxNameStr);
const wxSize& size = wxDefaultSize,
int n = 0, const wxString choices[] = NULL,
int majorDim = 0,
- long style = wxRA_HORIZONTAL,
+ long style = wxRA_SPECIFY_COLS,
const wxValidator& val = wxDefaultValidator,
const wxString& name = wxRadioBoxNameStr)
{
const wxSize& size,
const wxArrayString& choices,
int majorDim = 0,
- long style = wxRA_HORIZONTAL,
+ long style = wxRA_SPECIFY_COLS,
const wxValidator& val = wxDefaultValidator,
const wxString& name = wxRadioBoxNameStr)
{
const wxSize& size = wxDefaultSize,
int n = 0, const wxString choices[] = NULL,
int majorDim = 0,
- long style = wxRA_HORIZONTAL,
+ long style = wxRA_SPECIFY_COLS,
const wxValidator& val = wxDefaultValidator,
const wxString& name = wxRadioBoxNameStr);
bool Create(wxWindow *parent,
const wxSize& size,
const wxArrayString& choices,
int majorDim = 0,
- long style = wxRA_HORIZONTAL,
+ long style = wxRA_SPECIFY_COLS,
const wxValidator& val = wxDefaultValidator,
const wxString& name = wxRadioBoxNameStr);
,int nNum = 0
,const wxString asChoices[] = NULL
,int nMajorDim = 0
- ,long lStyle = wxRA_HORIZONTAL
+ ,long lStyle = wxRA_SPECIFY_COLS
,const wxValidator& rVal = wxDefaultValidator
,const wxString& rsName = wxRadioBoxNameStr
)
,const wxSize& rSize
,const wxArrayString& asChoices
,int nMajorDim = 0
- ,long lStyle = wxRA_HORIZONTAL
+ ,long lStyle = wxRA_SPECIFY_COLS
,const wxValidator& rVal = wxDefaultValidator
,const wxString& rsName = wxRadioBoxNameStr
)
,int nNum = 0
,const wxString asChoices[] = NULL
,int nMajorDim = 0
- ,long lStyle = wxRA_HORIZONTAL
+ ,long lStyle = wxRA_SPECIFY_COLS
,const wxValidator& rVal = wxDefaultValidator
,const wxString& rsName = wxRadioBoxNameStr
);
,const wxSize& rSize
,const wxArrayString& asChoices
,int nMajorDim = 0
- ,long lStyle = wxRA_HORIZONTAL
+ ,long lStyle = wxRA_SPECIFY_COLS
,const wxValidator& rVal = wxDefaultValidator
,const wxString& rsName = wxRadioBoxNameStr
);
inline wxRadioBox(wxWindow *parent, wxWindowID id, const wxString& title,
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
int n = 0, const wxString choices[] = NULL,
- int majorDim = 0, long style = wxRA_HORIZONTAL,
+ int majorDim = 0, long style = wxRA_SPECIFY_COLS,
const wxValidator& val = wxDefaultValidator, const wxString& name = wxRadioBoxNameStr)
{
Create(parent, id, title, pos, size, n, choices, majorDim, style, val, name);
inline wxRadioBox(wxWindow *parent, wxWindowID id, const wxString& title,
const wxPoint& pos, const wxSize& size,
const wxArrayString& choices,
- int majorDim = 0, long style = wxRA_HORIZONTAL,
+ int majorDim = 0, long style = wxRA_SPECIFY_COLS,
const wxValidator& val = wxDefaultValidator,
const wxString& name = wxRadioBoxNameStr)
{
bool Create(wxWindow *parent, wxWindowID id, const wxString& title,
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
int n = 0, const wxString choices[] = NULL,
- int majorDim = 0, long style = wxRA_HORIZONTAL,
+ int majorDim = 0, long style = wxRA_SPECIFY_COLS,
const wxValidator& val = wxDefaultValidator, const wxString& name = wxRadioBoxNameStr);
bool Create(wxWindow *parent, wxWindowID id, const wxString& title,
const wxPoint& pos, const wxSize& size,
const wxArrayString& choices,
- int majorDim = 0, long style = wxRA_HORIZONTAL,
+ int majorDim = 0, long style = wxRA_SPECIFY_COLS,
const wxValidator& val = wxDefaultValidator,
const wxString& name = wxRadioBoxNameStr);
const wxSize& size = wxDefaultSize,
int n = 0, const wxString choices[] = NULL,
int majorDim = 1,
- long style = wxRA_HORIZONTAL,
+ long style = wxRA_SPECIFY_COLS,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxRadioBoxNameStr)
: wxRadioBox(parent, id, title, pos, size, n, choices, majorDim,
// ------------
// the check/radio boxes for styles
- wxCheckBox *m_chkVert;
+ wxCheckBox *m_chkSpecifyRows;
wxCheckBox *m_chkEnableItem;
wxCheckBox *m_chkShowItem;
wxRadioBox *m_radioDir;
: WidgetsPage(book, imaglist, radio_xpm)
{
// init everything
- m_chkVert = (wxCheckBox *)NULL;
+ m_chkSpecifyRows = (wxCheckBox *)NULL;
m_chkEnableItem = (wxCheckBox *)NULL;
m_chkShowItem = (wxCheckBox *)NULL;
wxSizer *sizerLeft = new wxStaticBoxSizer(box, wxVERTICAL);
- m_chkVert = CreateCheckBoxAndAddToSizer(sizerLeft, _T("&Vertical layout"));
+ m_chkSpecifyRows = CreateCheckBoxAndAddToSizer
+ (
+ sizerLeft,
+ "Major specifies &rows count"
+ );
static const wxString layoutDir[] =
{
m_textLabel->SetValue(_T("I'm a radiobox"));
m_textLabelBtns->SetValue(_T("item"));
- m_chkVert->SetValue(false);
+ m_chkSpecifyRows->SetValue(false);
m_chkEnableItem->SetValue(true);
m_chkShowItem->SetValue(true);
m_radioDir->SetSelection(RadioDir_Default);
labelBtn.c_str(), (unsigned long)n + 1);
}
- int flags = m_chkVert->GetValue() ? wxRA_VERTICAL
- : wxRA_HORIZONTAL;
+ int flags = m_chkSpecifyRows->GetValue() ? wxRA_SPECIFY_ROWS
+ : wxRA_SPECIFY_COLS;
flags |= ms_defaultFlags;
void RadioWidgetsPage::OnUpdateUIReset(wxUpdateUIEvent& event)
{
// only enable it if something is not set to default
- bool enable = m_chkVert->GetValue();
+ bool enable = m_chkSpecifyRows->GetValue();
if ( !enable )
{
{
m_rangeRadioBox = new wxRadioBox(this, wxPRINTID_RANGE, _("Print Range"),
wxDefaultPosition, wxDefaultSize,
- 2, choices,
- 1, wxRA_VERTICAL);
+ 2, choices);
m_rangeRadioBox->SetSelection(1);
mainsizer->Add( m_rangeRadioBox, 0, wxLEFT|wxTOP|wxRIGHT, 10 );
wxFLAGS_MEMBER(wxHSCROLL)
wxFLAGS_MEMBER(wxRA_SPECIFY_COLS)
- wxFLAGS_MEMBER(wxRA_HORIZONTAL)
wxFLAGS_MEMBER(wxRA_SPECIFY_ROWS)
- wxFLAGS_MEMBER(wxRA_VERTICAL)
-
wxEND_FLAGS( wxRadioBoxStyle )
IMPLEMENT_DYNAMIC_CLASS_XTI(wxRadioBox, wxControl,"wx/radiobox.h")
wxFLAGS_MEMBER(wxHSCROLL)
wxFLAGS_MEMBER(wxRA_SPECIFY_COLS)
- wxFLAGS_MEMBER(wxRA_HORIZONTAL)
wxFLAGS_MEMBER(wxRA_SPECIFY_ROWS)
- wxFLAGS_MEMBER(wxRA_VERTICAL)
-
wxEND_FLAGS( wxRadioBoxStyle )
IMPLEMENT_DYNAMIC_CLASS_XTI(wxRadioBox, wxControl,"wx/radiobox.h")
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;
}
wxFAIL_MSG( _T("you must specify wxRA_XXX style!") );
// use default
- style = wxRA_HORIZONTAL | wxRA_LEFTTORIGHT;
+ style = wxRA_SPECIFY_COLS | wxRA_LEFTTORIGHT;
}
}