AddScreenGadgetItem()

Syntax

AddScreenGadgetItem(#ScreenGadget, Position, Text$)
Description
Add an item to the specified #ScreenGadget.

Parameters

#ScreenGadget The gadget to use.
Position The item index where the new item should be inserted. To add the item at the start, use a value of 0. To add this item to the end of the current item list, use a value of -1. Remember that when you add an item that all current items which come after the new one will have their positions increased by 1.
Text$ The new item text.

Return value

None.

Remarks

The following gadgets are supported:

- ComboBoxScreenGadget()
- ListViewScreenGadget()
- PanelScreenGadget()

See Also

ComboBoxScreenGadget(), ListViewScreenGadget(), PanelScreenGadget()

Supported OS

All

ScreenGadget Index - ButtonImageScreenGadget() ->