ListIconGadget()
Syntax
ListIconGadget(#Gadget, x, y, Width, Heigth, Title$, TitleWidth [, Flags])
Description
Create a ListIcon gadget in the current GadgetList. #Gadget will be the numeric identifiant returned by EventGadgetID() command. 'Title$' is the first column title$, and 'TitleWidth' its initial width. Once a ListIcon is created, its list of item is empty. The following commands can be used to act on the list content:
- AddGadgetItem(): Add an item (with an optional image)
- RemoveGadgetItem(): Remove an item
- ClearGadgetItemList(): Remove all the items
- CountGadgetItems(): Returns the number of items currently in the #Gadget
- GetGadgetItemState(): Returns the current state of the specified item.
- SetGadgetItemState(): Changes the current state of the specified item.
- GetGadgetItemText(): Returns the current text of the specified item.
- SetGadgetItemText(): Changes the current text of the specified item.
Use AddGadgetColumn() to add a column to this gadget.
Use ChangeListIconGadgetDisplay() to change the aspect of the ListIcon, as four form are supported (large icon, small icon, list and report.
'Flags' are optionnals and can be composed of one of the following constants:#PB_ListIcon_CheckBoxes : Display checkboxes in the first column. #PB_ListIcon_MultiSelect : Enable the multi selection. #PB_ListIcon_GridLines : Display separator lines. #PB_ListIcon_FullRowSelect : The selection is now over the full row instead of the first column #PB_ListIcon_HeaderDragDrop : Columns order can be changed with drag'n'drop. #PB_ListIcon_AlwaysShowSelection: Even if the gadget isn't activated, the selection is still visible.
Visual Preview
Supported OS
Windows