ListViewGadget()
Syntax
ListViewGadget(#Gadget, x, y, Width, Heigth)
Description
Create a ListView gadget in the current GadgetList. #Gadget will be the numeric identifiant returned by EventGadgetID() command. Once a ListView is created, its list of item is empty. The following commands can be used to act on the list content:
- AddGadgetItem(): Add an item
- RemoveGadgetItem(): Remove an item
- ClearGadgetItemList(): Remove all the items
- SetGadgetState():Change the selected item.
- GetGadgetState(): Get the index of the selected item.
The command EventType() can be checked to know if the user has done a double click when it has selected the list item.
Supported OS
Windows, AmigaOS, Linux