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

Just starting out? Need help? Post your questions and find answers here.
doraemon
New User
New User
Posts: 9
Joined: Thu Sep 18, 2003 2:33 pm

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

Post 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
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

You can use CHR(10) I think :
AddGadgetItem(#Gadget, -1, "Column1" + CHR(10) + "Column2" + CHR(10) + "Column3")
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post 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
quidquid Latine dictum sit altum videtur
Post Reply