View Feature Request
"column" in the simpleScrollList.
Feature #: 20
File: LibSimpleWidgets
Date: 12-16-11 02:41 PM
By: algritz
Status: Flagged for Future Version
Is there a way to have "column" in the simpleScrollList.

Say I have a table with 4 columns

here's an example :

slot | name | value1 | value2
------------------------------------
hand | Tin Gauntlet | Plate | Warrior |


I'd like to be able to have a set width for each column or maybe have it calculated automatically based on the with required by each columns.

Thanks !

RSS 2.0 Feed for Favorite CommentsNotes Sort Options
By: algritz - 12-16-11 02:42 PM
SimpleScrollView, not SimpleScrollList :-P
By: algritz - 12-16-11 07:26 PM
To add, if column could be passed in the following way it would be a charm to use :


item_db = {{{"value A1", "value A2", "value A3", "value A4", "value AN"}, {"value B1", "value B2", "value B3", "value "B4", "value BN"}}} -- These values would constitute the actual data you want to display (would usually come from a saved variable)
local items = {}
if item_db ~= nil then
local entry_count = table.getn(item_db[1])
for i=1, entry_count do
table.insert({items, item_db[1][i][1], item_db[1][i][2], item_db[1][i][3], item_db[1][i][4], item_db[1][i][N]} )
end
SWT_Window.list:SetItems(items)
SWT_Window.listScrollView:SetContent(SWT_Window.list)
end
 
Menu
» Home



Stats
Files: 2
Downloads: 10,737
Favorites: 13

New & Updated


Riftui