// bbSetOutputOut( bbGetInputIn() );
// std::cout << "Output value = " <<bbGetOutputOut() << std::endl;
- if (bbGetInputType()==1)
+ if ((bbGetInputType()==1) && ( bbGetInputBox_ConcatString()!=NULL) )
{
bbGetInputBox_ConcatString()->bbSetOutputOut( bbGetInputIn1() );
bbGetInputBox_ConcatString()->bbSignalOutputModification(std::string("Out"));
// bbGetInputBox_ConcatString()->bbSignalOutputModification();
- } // if Type == 1
+ } // if Type == 1 && Box
}
sizer->Add( new wxStaticText(panel,-1, _T("") ) );
}
//---------------------------------------------------------------------
+
if (mTypeForm==1)
{
wxListBox *wxlistbox = new wxListBox ( panel , -1 , wxDefaultPosition,wxSize(sizeX,sizeY),0, NULL, wxLB_SINGLE );
// if (bbGetInputSelection() >= bbGetInputIn().size()) { iSelection=bbGetInputIn().size()-1; }
if (bbGetInputSelection() >= bbGetInputIn().size()) { iSelection=0; }
ComboBoxWidget *w = (ComboBoxWidget*)bbGetOutputWidget();
- w->FillItems( iSelection, bbGetInputIn() );
- bbSetInputSelection( iSelection );
- bbSetOutputOut( iSelection );
- int size = bbGetInputIn().size();
- if ( (iSelection>=0) && ( iSelection<size) )
- {
- bbSetOutputOutString( bbGetInputIn()[ iSelection ] );
- } // if iSelection
- w->VerifyDeselect(iSelection);
+ if (w!=NULL) {
+ w->FillItems( iSelection, bbGetInputIn() );
+ bbSetInputSelection( iSelection );
+ bbSetOutputOut( iSelection );
+ int size = bbGetInputIn().size();
+ if ( (iSelection>=0) && ( iSelection<size) )
+ {
+ bbSetOutputOutString( bbGetInputIn()[ iSelection ] );
+ } // if iSelection
+ w->VerifyDeselect(iSelection);
+ } // if w
}
//=====
// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
bbSetOutputOutString( bbGetInputIn()[ bbGetInputSelection() ] );
} // if InputIn size
bbSetOutputWidget( w );
+
}
//=====
// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
//=====
void ComboBox::bbUserFinalizeProcessing()
{
-
}
-}
-// EO namespace bbwx
+
+}// EO namespace bbwx
lstIn.push_back( bbtk::std2wx(bbGetInputIn7()) );
lstIn.push_back( bbtk::std2wx(bbGetInputIn8()) );
lstIn.push_back( bbtk::std2wx(bbGetInputIn9()) );
-
-
- ( (RadioButtonWidget*)bbGetOutputWidget() )->AddElements(lstIn, bbGetInputIn() , bbtk::std2wx(bbGetInputTitle()) );
-
-
+
+ if (bbGetOutputWidget()!=NULL)
+ {
+ ( (RadioButtonWidget*)bbGetOutputWidget() )->AddElements(lstIn, bbGetInputIn() , bbtk::std2wx(bbGetInputTitle()) );
+ } // if bbGetOutputWidget
}
/**
bbtkDebugMessage("process",3,
"Slider "<<bbGetName()<<" input="
<<bbGetInputIn()<<std::endl);
-
+
+ if (bbGetOutputWidget()!=NULL)
+ {
// desperate try // JPR
- if ( bbGetInputMin() != ((SliderWidget*)bbGetOutputWidget())->GetMin() || bbGetInputMax() != ((SliderWidget*)bbGetOutputWidget())->GetMax() )
- {
- ((SliderWidget*)bbGetOutputWidget())->SetRange(bbGetInputMin(),bbGetInputMax()) ;
- }
+ if ( bbGetInputMin() != ((SliderWidget*)bbGetOutputWidget())->GetMin() || bbGetInputMax() != ((SliderWidget*)bbGetOutputWidget())->GetMax() )
+ {
+ ((SliderWidget*)bbGetOutputWidget())->SetRange(bbGetInputMin(),bbGetInputMax()) ;
+ }
- ((SliderWidget*)bbGetOutputWidget())->SetReactiveOnTrack( bbGetInputReactiveOnTrack() ) ;
+ ((SliderWidget*)bbGetOutputWidget())->SetReactiveOnTrack( bbGetInputReactiveOnTrack() ) ;
- bbSetOutputOut( bbGetInputIn() );
- if (bbGetOutputWidget()!=0)
- {
- ((SliderWidget*)bbGetOutputWidget())->SetValue(bbGetInputIn());
- }
+ bbSetOutputOut( bbGetInputIn() );
+ ((SliderWidget*)bbGetOutputWidget())->SetValue(bbGetInputIn());
+ } // if bbGetOutputWidget
}
//--------------------------------------------------------------------------