added Append(wxArrayString) to wxItemContainer (and so to wxChoice, wxComboBox, wxListBox, ...)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13677 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-01-20 15:20:57 +00:00
parent 0fe1f685b4
commit 0e0bc92190
2 changed files with 16 additions and 0 deletions

View File

@@ -57,6 +57,19 @@ wxString wxItemContainer::GetStringSelection() const
return s;
}
// ----------------------------------------------------------------------------
// appending items
// ----------------------------------------------------------------------------
void wxItemContainer::Append(const wxArrayString& strings)
{
size_t count = strings.GetCount();
for ( size_t n = 0; n < count; n++ )
{
Append(strings[n]);
}
}
// ----------------------------------------------------------------------------
// client data
// ----------------------------------------------------------------------------