//=====
void ComboBox::Process()
{
+
+printf("EED ComboBox::Process start\n");
+
int iSelection = bbGetInputSelection();
+printf("EED ComboBox::Process 0\n");
if (bbGetInputSelection() >= bbGetInputIn().size()) { iSelection=bbGetInputIn().size()-1; }
+printf("EED ComboBox::Process 1\n");
ComboBoxWidget *w = (ComboBoxWidget*)bbGetOutputWidget();
+printf("EED ComboBox::Process 2\n");
w->FillItems( iSelection, bbGetInputIn() );
+printf("EED ComboBox::Process 3\n");
bbSetInputSelection( iSelection );
+printf("EED ComboBox::Process 4\n");
bbSetOutputOut( iSelection );
- bbSetOutputOutString( bbGetInputIn()[ iSelection ] );
+printf("EED ComboBox::Process 5\n");
+
+ int size = bbGetInputIn().size();
+ if ( (iSelection>0) && ( (size-1)<=iSelection) )
+ {
+ bbSetOutputOutString( bbGetInputIn()[ iSelection ] );
+ }
// bbSignalOutputModification("Out");
// bbSignalOutputModification("OutString");
+printf("EED ComboBox::Process end\n");
+
}
//=====