ListViewGadget3D()

Syntax

Result = ListViewGadget3D(#Gadget3D, x, y, Width, Height)
Description
Creates a ListView gadget in the current GadgetList. If #PB_Any is used as '#Gadget3D' parameter, the new gadget number will be returned as 'Result'. #Gadget3D will be the number returned by the EventGadget3D() function. Once a ListView is created, its list of items is empty.

To add a 'mini help' to this gadget, use GadgetToolTip3D().

The following functions can be used to act on the list content:

- AddGadgetItem3D(): Add an item.
- RemoveGadgetItem3D(): Remove an item.
- ClearGadgetItems3D(): Remove all the items
- CountGadgetItems3D(): Returns the number of items currently in the #Gadget3D.

- GetGadgetItemData3D(): Get the value that was stored with the gadget item.
- GetGadgetItemState3D(): Returns nonzero if the item is selected, zero otherwise.
- GetGadgetItemText3D(): Get the content of the given item.
- GetGadgetState3D(): Get the index of the selected item or -1 if there is no selected item.
- GetGadgetText3D(): Get the content of the selected item.
- SetGadgetItemData3D(): store a value with the given item.
- SetGadgetItemState3D(): Selects or deselects the given item.
- SetGadgetItemText3D(): Set the text of the given item.
- SetGadgetState3D(): Change the selected item. If -1 is specified, the selection will be removed.
- SetGadgetText3D(): Selects the item with the given text (the text must match exactly).

Supported OS

All

<- IsGadget3D() - Gadget3D Index - OpenGadgetList3D() ->