Page 1 of 1

Help needed with ListIconGadget

Posted: Tue Aug 12, 2003 5:24 am
by gadams
I am new to purebasic from VB6.
I have set up a ListIconGadget with several columns and a variable number of items.
It seems to me that if you click on one of the items then the GetGadgetText(#Gadget)
will return the value of the 1st column, but what if you want the value of the 4th column?
using, GetGadgetItemText(#Gadget, Item, Column) is ok if you know the item number,
But just by clicking on an item the item number is not returned!.

So how do you return a value from any item or column in the ListIconGadget
with just with a mouse click?

Am I missing something simlpe?
thank you.[/b]

Posted: Tue Aug 12, 2003 4:29 pm
by ebs
gadams,

Welcome! I also "graduated" from VB to PB - you'll love it!

You can get the selected item number using "GetGadgetState(#Gadget)" and then use "GetGadgetItemText()" to get the contents of the column you want.

Eric

Posted: Wed Aug 13, 2003 12:22 am
by gadams
Works fine
Thank you.