{
wxStringList *stringList = new wxStringList;
int i;
- for (i = 0; i < listBox->Number(); i++)
+ for (i = 0; i < listBox->GetCount(); i++)
stringList->Add(listBox->GetString(i));
return new wxProperty(name, stringList, "stringlist");
// This will be set for the wxItemResource on reading or in SetProperty
// resource->SetValue1(lbox->GetSelectionMode());
int i;
- if (lbox->Number() == 0)
+ if (lbox->GetCount() == 0)
resource->SetStringValues(NULL);
else
{
wxStringList slist;
- for (i = 0; i < lbox->Number(); i++)
+ for (i = 0; i < lbox->GetCount(); i++)
slist.Add(lbox->GetString(i));
resource->SetStringValues(slist);
{
wxStringList* stringList = new wxStringList;
int i;
- for (i = 0; i < choice->Number(); i++)
+ for (i = 0; i < choice->GetCount(); i++)
stringList->Add(choice->GetString(i));
return new wxProperty(name, stringList, "stringlist");
choice->Append(s);
expr = expr->GetNext();
}
- if (choice->Number() > 0)
+ if (choice->GetCount() > 0)
choice->SetSelection(0);
return TRUE;
}
{
wxChoice *choice = (wxChoice *)m_propertyWindow;
int i;
- if (choice->Number() == 0)
+ if (choice->GetCount() == 0)
resource->SetStringValues(NULL);
else
{
wxStringList slist;
- for (i = 0; i < choice->Number(); i++)
+ for (i = 0; i < choice->GetCount(); i++)
slist.Add(choice->GetString(i));
resource->SetStringValues(slist);
{
wxStringList *stringList = new wxStringList;
int i;
- for (i = 0; i < choice->Number(); i++)
+ for (i = 0; i < choice->GetCount(); i++)
stringList->Add(choice->GetString(i));
return new wxProperty(name, stringList, "stringlist");
choice->Append(s);
expr = expr->GetNext();
}
- if (choice->Number() > 0)
+ if (choice->GetCount() > 0)
choice->SetSelection(0);
return TRUE;
}
{
wxComboBox *choice = (wxComboBox *)m_propertyWindow;
int i;
- if (choice->Number() == 0)
+ if (choice->GetCount() == 0)
resource->SetStringValues(NULL);
else
{
wxStringList slist;
- for (i = 0; i < choice->Number(); i++)
+ for (i = 0; i < choice->GetCount(); i++)
slist.Add(choice->GetString(i));
resource->SetStringValues(slist);
{
wxStringList *stringList = new wxStringList;
int i;
- for (i = 0; i < radioBox->Number(); i++)
+ for (i = 0; i < radioBox->GetCount(); i++)
stringList->Add(radioBox->GetString(i));
return new wxProperty(name, stringList, "stringlist");
// Take strings from resource instead
/*
int i;
- if (rbox->Number() == 0)
+ if (rbox->GetCount() == 0)
resource->SetStringValues(NULL);
else
{
wxStringList *slist = new wxStringList;
- for (i = 0; i < rbox->Number(); i++)
+ for (i = 0; i < rbox->GetCount(); i++)
slist->Add(rbox->GetString(i));
resource->SetStringValues(slist);