button-create

long ( button-create long panel-id string callback string label optional long x optional long y optional long width optional long height)

Creates a button 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 the button is pressed, with the button ID as argument. 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.