int typeForm);
~ComboBoxWidget();
void OnComboBox();
- void AddItems( std::vector<std::string> lstIn );
+ void SetItems( std::vector<std::string> lstIn );
private:
int mTypeForm;
}
//--------------------------------------------------------------------------
- void ComboBoxWidget::AddItems( std::vector<std::string> lstIn )
+ void ComboBoxWidget::SetItems( std::vector<std::string> lstIn )
{
int i;
+
+ selection->clear();
+
for (i=0;i<lstIn.size(); i++)
{
selection->addItem(bbtk::std2wt(lstIn[i]));
void ComboBox::Process()
{
- ComboBoxWidget *widget = (ComboBoxWidget *)bbGetOutputWidget();
- widget->AddItems( bbGetInputIn() );
-
+ ComboBoxWidget *widget = (ComboBoxWidget *)bbGetOutputWidget();
+ widget->SetItems( bbGetInputIn() );
+
}
//=====
// 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)