//
// ----------------------------------------------------------------------------
// Copyright (C) 1998, 1999, 2000 Red Hat, Inc.
-// Copyright (C) 2003 John Dallaway
//
// This program is part of the eCos host tools.
//
//===========================================================================
//#####DESCRIPTIONBEGIN####
//
-// Author(s): julians, jld
+// Author(s): julians
// Contact(s): julians
// Date: 2000/09/28
// Version: $Id$
wxSizer *item1 = new wxBoxSizer( wxHORIZONTAL );
wxSizer *item2 = new wxBoxSizer( wxVERTICAL );
-
+
wxStaticText *item3 = new wxStaticText( parent, wxID_STATIC, _("Available &packages:"), wxDefaultPosition, wxDefaultSize, 0 );
item2->Add( item3, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
wxButton *item7 = new wxButton( parent, ecID_PACKAGES_DIALOG_REMOVE, _("<< &Remove"), wxDefaultPosition, wxDefaultSize, 0 );
item5->Add( item7, 0, wxALIGN_CENTRE|wxALL, 5 );
-
+
item1->Add( item5, 0, wxALIGN_CENTRE|wxALL, 0 );
wxSizer *item8 = new wxBoxSizer( wxVERTICAL );
wxButton *item20 = new wxButton( parent, wxID_OK, _("&OK"), wxDefaultPosition, wxDefaultSize, 0 );
item20->SetDefault();
item18->Add( item20, 0, wxALIGN_CENTRE|wxALL, 5 );
-
+
wxButton *item21 = new wxButton( parent, wxID_CANCEL, _("&Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
item18->Add( item21, 0, wxALIGN_CENTRE|wxALL, 5 );
}
// Initialize the controls
- for (i = 0; i < GetCount(); i++)
+ for (i = 0; i < GetCount()-1; i++)
{
const wxString& str = m_items[i];
wxListBox* lb = m_arnItems[i] ? useList : availableList;