SetGadgetItemImage()

Syntax

SetGadgetItemImage(#Gadget, Item, ImageID)
Description
Changes the image of the specified gadget item.

Parameters

#Gadget The gadget to use.
Item The item to change the image. The first item in the gadget has index 0.
ImageID The new image to use for the gadget item. The used image should be in the standard 16x16 size. Use the ImageID() command to get the ID for this parameter.

Return value

None.

Remarks

This is a universal function which works for the following gadgets:

- ComboBoxGadget()
- ListIconGadget()
- PanelGadget() (not supported on OS X)
- TreeGadget()

See Also

AddGadgetItem()

Supported OS

All

<- SetGadgetItemData() - Gadget Index - SetGadgetItemState() ->