SetGadgetItemText()

Syntax

SetGadgetItemText(#Gadget, Item, Text$ [, Column])
Description
Changes the item text of the specified gadget.

Parameters

#Gadget The gadget to use.
Item The item to use. The first item in the gadget has index 0.
Text$ The new text to set.
Column (optional) The column to use for gadgets that support multiple columns. The first column has index 0. The default is column 0.

Return value

None.

Remarks

This is a universal function which works for almost all gadgets which handle several items:

- ComboBoxGadget()
- ListIconGadget(): If Item = -1, the header text of the given column is changed.
- ListViewGadget()
- PanelGadget()
- TreeGadget()
- WebGadget(): Change the html code in the gadget with #PB_Web_HtmlCode as 'Item'.

See Also

GetGadgetItemText(), GetGadgetText(), SetGadgetText()
<- SetGadgetItemState() - Gadget Index - SetGadgetState() ->