Page 1 of 1

Add texts to the 2nd, 3rd Column of a ListIconGadget

Posted: Fri Sep 19, 2003 10:35 am
by doraemon
I have something like this:
;----------------------------------------------------------------------
ListIconGadget(#StockCentral, 150, 50, 450, 300, "Marca", 50 ,#PB_ListIcon_CheckBoxes)
AddGadgetColumn(#StockCentral,1,"Model", 100)
AddGadgetColumn(#StockCentral,2,"IMEI", 100)
AddGadgetColumn(#StockCentral,3,"NºTlf", 100)
AddGadgetColumn(#StockCentral,4,"Tipus", 100)

AddGadgetItem(#StockCentral, 1, "Motorola")
AddGadgetItem(#StockCentral, 2, "Siemens")
;------------------------------------------------------------------------

How I can add something to the Model , or IMEI column???

Sorry for my horrible english

Posted: Fri Sep 19, 2003 11:04 am
by gnozal
You can use CHR(10) I think :
AddGadgetItem(#Gadget, -1, "Column1" + CHR(10) + "Column2" + CHR(10) + "Column3")

Posted: Fri Sep 19, 2003 11:30 am
by freak
Yes, for AddGadgetItem() use Chr(10) to seperate the different columns.
With SetGadgetItemText() you have the Column parameter, to set each
column individually.

So you can also use AddGadgetItem() to just fill the first column, and then
SetGadgetItemText() to fill the others.

Timo