list-box-create

long ( list-box-create long panel-id string callback string label long multiple, optional long x optional long y optional long width optional long height)

Creates a list box item on the given panel. The callback may be the empty string ("'') to denote no callback, or a word or string for the function name. The function will be called when an item in the list box is selected or deselected, with the list box ID as argument. The value of multiple should be 1 if multiple selections are required, or 0 if only a single selection is required.

If no position is given, the panel item is placed after the last item. The value -1 may be passed to denote a default, so that the position may be left unspecified and the size given.