+void ComboBoxWidget::OnComboBox(wxEvent& event)
+{
+ int iSelection = itemcontainer->GetSelection();
+ OnComboBoxSelection( iSelection );
+ if (mBox->bbGetInputWithSpinButton()==true)
+ {
+ mwxspinbutton->SetValue( iSelection );
+ }
+
+}
+
+//--------------------------------------------------------------------------
+void ComboBoxWidget::OnSpinCtrlClick(wxCommandEvent& event)
+{
+ int iSelection = mwxspinbutton->GetValue();
+ itemcontainer->SetSelection(iSelection);
+ OnComboBoxSelection( iSelection );
+}
+
+
+//--------------------------------------------------------------------------
+void ComboBoxWidget::FillItems( int iSelection, std::vector< std::string > lstIn )
+{
+ int i,size = lstIn.size();
+
+
+#if defined(_WIN32)
+ // Patch to put spaces at the beginin
+#else
+ /*
+ // Patch to put spaces at the beginin
+ int strLength=-1;
+ // Looking for the longest string
+ for (i=0 ;i<size; i++)
+ {
+ if ( strLength < (int) lstIn[i].length() ) { strLength=lstIn[i].length(); }
+ } // for
+ // Adding spaces at the bigining to the others strings in the list to have the same size
+ int ii,len2;
+ for (i=0 ;i<size; i++)
+ {
+ len2 = strLength - lstIn[i].length();
+ for (ii=0;ii<len2;ii++)
+ {
+ lstIn[i]=" "+lstIn[i]; // spaces characters
+ } // for ii
+ } // for i
+ */
+#endif // defined(_WIN32)
+
+ itemcontainer->Clear();
+ for (i=0;i<size; i++)