Page 1 of 1

SetGadgetItemRow

Posted: Wed Mar 03, 2010 8:54 am
by jamirokwai
As described here: http://www.purebasic.fr/english/viewtop ... 2&p=317655

I'd like to suggest a SetGadgetItemRowText(), much similar to SetGadgetItemText()

Code: Select all

SetGadgetItemText(#Gadget, Item, Text$ [, Column])

Code: Select all

SetGadgetItemTextRow(#Gadget, Item, Text$)
With this, changing a whole line inside e.g a ListIconGadget would be a lot easier, as you may use the Chr(10)-feature to divide the cells.
The same could apply to GetGadgetItemTextRow like here:

Code: Select all

Result = GetGadgetItemTextRow(#Gadget, Item [, DividerChar$])
This would give back the whole Row with Chr(10) as divider or the optional divider Char.
As a result, you don't have to loop through all cells when reading from or writing to a complete row.