Beta Documentation - Subject to change.
Sets the a flag indicating if the listbox should fill in reverse.
Syntax
Lua |
---|
function ListBox:SetReverseFill(value);
|
Parameters
- value
-
Type:
boolean
True to enable reverse fill.
Remarks
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 Listbox | Copy 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