I am in the process of converting one of my listboxes to a multicolumn listbox. My problem is that I am trying to be very diligent to keep all stylization/event subscription code out of the c++. However, because I am adding itemEntries to the listbox (and now ListboxTextItems to the MultiColumnListBox) dynamically I've been doing some workarounds in LUA.
Previously, my ItemListbox looked like this:
Code: Select all
<Window Type="WindowsLook/ItemListbox" Name="MapLoad/ListBox" >
<Property Name="Font" Value="DejaVuSans-10" />
<Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
<Property Name="UnifiedAreaRect" Value="{{0,17},{0,20},{1,-17},{1.0,-25}}" />
<Event Name="AddedChild" Function="MapLoad_ListboxChildAdd" />
</Window>Within that LUA function I was able to do any stylization of the added items, referencing them by the CEGUI.toWindowEventArgs(e).window. However, because the ListboxTextItems are (as I recall) not derived from the CEGUI::Window class, this does not appear to work.
Is there any other way to achieve this same sort of workaround for stylization outside of the c++ code? Or is there a more direct route, perhaps using the AutoWindow tag?
Any help is appreciated.
Alex
