+ static unsigned int s_item = 0;
+
+ wxString s = m_textInsert->GetValue();
+ if ( !m_textInsert->IsModified() )
+ {
+ // update the default string
+ m_textInsert->SetValue(wxString::Format(wxT("test item %u"), ++s_item));
+ }
+
+ if (m_combobox->GetSelection() >= 0)
+ m_combobox->Insert(s, m_combobox->GetSelection());
+}
+
+void ComboboxWidgetsPage::OnButtonAdd(wxCommandEvent& WXUNUSED(event))
+{
+ static unsigned int s_item = 0;