SetGadgetItemState()
Syntax
SetGadgetItemState(#Gadget, Item, State)Description
Changes the item state of the specified #Gadget. This is a universal function which works for almost all gadgets which handle several items. 'State' can take the following values:
- CalendarGadget(): #PB_Calendar_Bold to make a date appear bold, #PB_Calendar_Normal otherwise.
- ListViewGadget(): 1 if the item should be selected, 0 otherwise.
- ListIconGadget(): Combination of the following values:#PB_ListIcon_Selected: The item should be selected. #PB_ListIcon_Checked : The item should have its checkbox checked (#PB_ListIcon_CheckBoxes flags).- TreeGadget(): Combination of the following values:#PB_Tree_Selected : The item should be selected. #PB_Tree_Expanded : The item should be expanded. #PB_Tree_Collapsed : The item should be collapsed. If neither #PB_Tree_Expanded nor #PB_Tree_Collapsed is set, this state will not be changed. #PB_Tree_Checked : The items checkbox should be checked.SetGadgetItemState(0, 1, #PB_Tree_Expanded | #PB_Tree_Selected) ; The 2nd item is selected and expanded.
Supported OS
All