Help needed with ListIconGadget

Just starting out? Need help? Post your questions and find answers here.
gadams
New User
New User
Posts: 3
Joined: Tue Aug 12, 2003 4:32 am

Help needed with ListIconGadget

Post 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]
ebs
Enthusiast
Enthusiast
Posts: 562
Joined: Fri Apr 25, 2003 11:08 pm

Post 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
gadams
New User
New User
Posts: 3
Joined: Tue Aug 12, 2003 4:32 am

Post by gadams »

Works fine
Thank you.
Post Reply