std::vector<wxString> lstIn );
~RadioButtonWidget();
-
int GetValue();
void OnRadioButton(wxEvent& event);
void AddElements(std::vector<wxString> lstIn, int In, wxString title);
-
private:
RadioButton *mBox;
int MAX_RADIOBUTTON;
- wxRadioButton *mwxRadioButton[10];
-
+ wxRadioButton *mwxRadioButton[25];
wxFlexGridSizer *sizer;
};
{
AddElements( lstIn , In,title);
mBox->bbSetOutputOut( GetValue() );
- mBox->bbSetInputIn( GetValue() );
+// mBox->bbSetInputIn( GetValue() );
}
//-------------------------------------------------------------------------
if (mwxRadioButton[i]->GetValue()==true)
{
result=i;
- }
- } // if GetValue
- } // if mwxRadioButton
+ } // if Value
+ } // if NULL
+ } // for i
+
return result;
}
// Any top level sub-widget must have the panel returned by panel
// for parent
mwxRadioButton[i] = new wxRadioButton( panel, -1, lstIn[i],wxDefaultPosition, wxDefaultSize, style);
- style=0;
- if (In==i)
+ style = 0;
+ if (i==In)
{
mwxRadioButton[i]->SetValue(true);
} else {
&RadioButtonWidget::OnRadioButton );
} else {
mwxRadioButton[i]=NULL;
- } // if
- } // for
+ } // if not =_T("")
+ } // for i
//---------------------------------------------------------------------
// 2) Insertion of the components in the window