GetGadgetItemState()
Syntax
Result = GetGadgetItemState(#Gadget, Item)
Description
Return the item state of the specified #Gadget. This is a universal function which works for almost all gadgets which handle several items:
- ListViewGadget(): returns 1 if the item is selected, 0 else.
- ListIconGadget(): returns a combination of the following values:#PB_ListIcon_Selected: The item is selected #PB_ListIcon_Checked : The item has its checkbox checked (#PB_ListIcon_CheckBoxes flags).- TreeGadget(): returns a combination of the following values:1: The item is selected, 0 else. 2: The item is expanded (a tree branch opened), 0 else.For example, if the 'Result' is 3, then the item is selected and expanded.
Supported OS
Windows, AmigaOS, Linux