Page 1 of 1

How to find the selected item # in a ListIcon gadget???

Posted: Mon Sep 18, 2006 11:06 pm
by cseymour
Hi All,
I have a ListIcon gadget that I fill from a database. What I want to do is be able to set the text of a couple of String Gadgets to the currently selected row of the ListIcon. I am struggling trying to get the item number I should use for the GetGadgetItemText() function. I want it to be the current row of the ListIcon gadget.

Any ideas?

Thanks.

Chris

Posted: Mon Sep 18, 2006 11:10 pm
by netmaestro
For ListIcons, GetGadgetState() returns the first selected item or -1 if no item is selected.

Posted: Mon Sep 18, 2006 11:49 pm
by cseymour
Thanks netmaestro. That was the ticket. :D

Much appreciated.

Cheers.

Chris