Beta Documentation - Subject to change.

Sets the flag indicating that the listbox should fill in reverse.

Syntax

Lua
function ListBox:SetReverseFill(value);

Parameters

value
Type: boolean
True to enable reverse fill.

Remarks

Sets the flag indicating that the listbox should fill in reverse. When filling in reverse, elements start at the bottom right and fill to the top left of the listbox. The default behavior is false and causes elements to layout from the top left to the bottom right.

Examples

This examples creates a listbox that lays out its elements from the bottom right and fills towards the top left.
Creating a Reverse Fill ListboxCopy Code
        window = Turbine.UI.Lotro.Window();
        window:SetPosition( 200, 200 );
        window:SetSize( 200, 200 );
        window:SetText( "Test" );
        window:SetVisible( true );
     
        listbox = Turbine.UI.ListBox();
        listbox:SetParent( window );
        listbox:SetBackColor( Turbine.UI.Color( 0.2, 0.2, 0.2 ) );
        listbox:SetPosition( 30, 50 );
        listbox:SetSize( 140, 120 );
        listbox:SetReverseFill( true );
     
        for i = 1, 23 do
          local listItem = Turbine.UI.Control();
          listItem:SetSize( 20, 20 );
          listItem:SetBackColor( Turbine.UI.Color( math.random(), math.random(), math.random() ) );
          listbox:AddItem( listItem );
        end

See Also