SetGadgetItemRow

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
jamirokwai
Enthusiast
Enthusiast
Posts: 796
Joined: Tue May 20, 2008 2:12 am
Location: Cologne, Germany
Contact:

SetGadgetItemRow

Post 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.
Regards,
JamiroKwai