wxPanel( parent, -1) ,
mBox(box)
{
-
+ AddElements( lstIn , In,title);
+ mBox->bbSetOutputOut( GetValue() );
+ mBox->bbSetInputIn( GetValue() );
}
+
//-------------------------------------------------------------------------
RadioButtonWidget::~RadioButtonWidget()
int result=-1;
int i;
for (i=0;i<MAX_RADIOBUTTON; i++)
- {
- if ( mwxRadioButton[i]!=NULL)
- {
- if (mwxRadioButton[i]->GetValue()==true)
- {
- result=i;
- }
- }
- }
+ {
+ if ( mwxRadioButton[i]!=NULL)
+ {
+ if (mwxRadioButton[i]->GetValue()==true)
+ {
+ result=i;
+ }
+ } // if GetValue
+ } // if mwxRadioButton
return result;
}
{
bbtkDebugMessageInc("Core",9,"RadioButton::Process()"<<std::endl);
bbtkDebugDecTab("Core",9);
-
-
std::vector<wxString> lstIn;
lstIn.push_back( bbtk::std2wx(bbGetInputIn0()) );
lstIn.push_back( bbtk::std2wx(bbGetInputIn1()) );
lstIn.push_back( bbtk::std2wx(bbGetInputIn7()) );
lstIn.push_back( bbtk::std2wx(bbGetInputIn8()) );
lstIn.push_back( bbtk::std2wx(bbGetInputIn9()) );
-
if (bbGetOutputWidget()!=NULL)
{
( (RadioButtonWidget*)bbGetOutputWidget() )->AddElements(lstIn, bbGetInputIn() , bbtk::std2wx(bbGetInputTitle()) );