- wxString item13Strings[] = {
- _("string"),
- _("choice"),
- _("bool"),
- _("float"),
- _("integer"),
- _("configitems")
- };
- wxChoice* item13 = new wxChoice(item1, ID_CUSTOMPROPERTYEDITORTYPE, wxDefaultPosition, wxDefaultSize, 6, item13Strings, 0);
- item13->SetStringSelection(_("string"));
- item11->Add(item13, 1, wxGROW|wxALL, 5);
+ items.Empty();
+ items.Add(_("string"));
+ items.Add(_("choice"));
+ items.Add(_("bool"));
+ items.Add(_("float"));
+ items.Add(_("integer"));
+ items.Add(_("configitems"));
+ m_customPropertyEditorType = new wxChoice(item1, wxID_ANY, wxDefaultPosition, wxDefaultSize, items);
+ m_customPropertyEditorType->SetStringSelection(_("string"));
+ item11->Add(m_customPropertyEditorType, 1, wxGROW|wxALL, 5);