Update GUILib - libraries/guilib/modernlib/listwidgetclass.ring - Add: AddList() Method - Add Ring List items to ListWidget - Support also nested lists
@@ -20,3 +20,16 @@ package System.GUI
func TakeItem nIndex
return super.TakeItem(nIndex-1)
+ func addList aList
+ if ! isList(aList)
+ ? "Bad parameter type - The addList() method expect a List!"
+ return
+ ok
+ for item in aList
+ if isString(item) or isNumber(item)
+ addItem(""+item)
+ but isList(item)
+ addList(item)
+ ok
+ next
+
