On Sun, Jan 20, 2013 at 9:39 AM, Staffan Tylen <firstname.lastname@example.org> wrote:
Have you looked through the documentation on LvFullRow, LvItem, and LvSubitem? LvFullRow came about though my desire to insert a new list-view item in one method invocation. However, my main design goal was to be able to specify all bits of data that the list-view supports.Yes, I've been through them all but couldn't see that they would address this particular task.
One idea I have would be something like this:do i = 2 to data~items -- loop thru all data arrayslv~insertFullRow(.LvFullRow~fromArray(data[i])) data array as a listview rowendListView::insertFullRow() already exists. I would just need to add the LvFullRow class method fromArray(...)LvFullRow objects have a number of things about them that are designed to assist in working with list-views. The LvFullRow object can automatically be set as the item data of the list-view item. Then, the list-view columns can be sorted internally, which makes sorting of list-views with a large number of items much, much faster.I like this idea.This would not give you faster insertion of a large number of items though.Is this regardless whether the lvFullRow object is set as item data or not? (Don't think my English is correct there!)
A new list-view method, insertRow() could be added that takes an array as an argument is possible
lv~insertRow(.array, itemData, stringValueForNil)I think it's important that whatever method is chosen, the stringValueForNil option be included in one way or another.