Code: Select all
<Window Type="WindowsLook/Listbox" Name="R/MenuBox/ScenarioList" >
<Property Name="Font" Value="DejaVuSans-10" />
<Property Name="Text" Value="List Box" />
<Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
<Property Name="UnifiedAreaRect" Value="{{0.0382938,0},{0.24673,0},{0.446821,0},{0.613393,0}}" />
<Property Name="ForceVertScrollbar" Value="True" />
</Window>
and added dynamicaly ListboxTextItems:
Code: Select all
Window * SBWindow = winMgr.getWindow("R/MenuBox/ScenarioList");
Listbox* ScenarioLB = static_cast<Listbox*>(SBWindow);
ScenarioLB->setMultiselectEnabled(false);
ListboxTextItem* itemListbox = new ListboxTextItem("Value A",1);
itemListbox->setSelectionBrushImage("WindowsLook", "MultiListSelectionBrush");
ScenarioLB->addItem(itemListbox);
ScenarioLB->setItemSelectState(itemListbox, true);
ScenarioLB->ensureItemIsVisible(itemListbox);
ScenarioLB->handleUpdatedItemData();
but i looks like that:
in the log file are no errors
???