I'm using the following code in an xml layout file to try and populate a droplist. I can't seem to get the items to appear in the list, as of now it is blank.
Before when I was creating the GUI at runtime, I just used Combobox along with ListBoxTextItem and it worked.
As you can see, for the first listbox item I tried setting different property values to make it visible, but to no avail. any ideas?
Code: Select all
<Window Type='TaharezLook/Static' Name='Cam Panel'>
<Property Name='UnifiedAreaRect' Value='{{0.000000,0.000000},{0.0,0.000000},{1.0,0.000000},{0.3,0.000000}}'/>
<Property Name='FrameEnabled' Value='false'/>
<Window Type='TaharezLook/Combobox' Name='CamList'>
<Property Name='ReadOnly' Value='true'/>
<Property Name='FrameEnabled' Value='false'/>
<Property Name='UnifiedAreaRect' Value='{{0.000000,0.000000},{0.0,0.000000},{1.0,0.000000},{1.0,0.000000}}'/>
<Window Type ='TaharezLook/ComboDropList' Name='DropList'>
<Property Name='Visible' Value='true'/>
<Window Type ='TaharezLook/ListboxItem' Name='Port'>
<Property Name='Text' Value='PORT'/>
<Property Name='Visible' Value='true'/>
<Property Name='TextColour' Value='FFFFFF'/>
<Property Name='AlwaysOnTop' Value='true'/>
</Window>
<Window Type ='TaharezLook/ListboxItem' Name='Starboard'>
<Property Name='Text' Value='STBD'/>
</Window>
</Window>
</Window>
</Window>
Thanks,
alex