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