Example #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;
}
Example #2
0
ListBox* NodeFactory::CreateEmptyListBox()
{
	ListBox* listBox = new ListBox();
	listBox->Initialize();
	return listBox;
}
Example #3
0
ListBox* NodeFactory::CreateListBox()
{
	ListBox* listBox = new ListBox(StringRef::Empty, ScrollDirection::VerticalFromTop);
	listBox->Initialize();
	return listBox;
}