Exemple #1
0
ListBox* NodeFactory::CreateStringListBox(const List<WHeapString>& strItems, bool isSingleLine/*=true*/)
{
	ListBox* listBox = new ListBox();
	listBox->SetDataSource(new StringListDataSource(strItems, isSingleLine));
	listBox->Initialize();
	return listBox;
}
Exemple #2
0
ListBox* NodeFactory::CreateEmptyListBox()
{
	ListBox* listBox = new ListBox();
	listBox->Initialize();
	return listBox;
}
Exemple #3
0
ListBox* NodeFactory::CreateListBox()
{
	ListBox* listBox = new ListBox(StringRef::Empty, ScrollDirection::VerticalFromTop);
	listBox->Initialize();
	return listBox;
}