Page 1 of 1

[Solved] Combobox setSortingEnabled

Posted: Sat May 05, 2007 02:58
by Dirso
Hi,

Is there anyway to change the sortingenabled using only the xml? I tried this code but it didn't work:

Code: Select all

         <Window Type="TaharezLook/Combobox" Name="MainMenu/Avatar/CbAvatar">
            <Property Name="UnifiedPosition" Value="{{0.1,0},{0.3,0}}" />
            <Property Name="UnifiedMaxSize" Value="{{0.2,0},{0.25,0}}" />
            <Property Name="UnifiedMinSize" Value="{{0.2,0},{0.25,0}}" />
            <Property Name="UnifiedSize" Value="{{0.2,0},{0.25,0}}" />
            <Property Name="InheritsAlpha" Value="False" />
            <Property Name="ReadOnly" Value="True" />
            <Property Name="SortEnabled" Value="True" />
            <Property Name="ClippedByParent" Value="False" />
         </Window>


Is there any place I can get a full list of properties with descriptions?

Thanks,
Dirso

Posted: Sat May 05, 2007 07:51
by Levia
Yes there is!
http://www.cegui.org.uk/wiki/index.php/SetProperty

And the property you want is 'SortList'. Set it to true and your set.

Posted: Sat May 05, 2007 13:12
by Dirso
It worked! Thanks for the link too! It's amazing!

Dirso