A button is a rectangular control which can be placed on a panel to invoke a function.
button-create
button-create-from-bitmap
long ( button-create long panel-id string callback string label
optional long x optional long y
optional long width optional long height optional string style optional string name)
Creates a label 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.
The style argument is reserved for future use.
name gives the button a name that can be retrieved with window-get-name.
long ( button-create-from-bitmap long panel-id string callback long bitmap-id
optional long x optional long y
optional long width optional long height optional string style optional string name)
Creates a bitmap 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.
The style argument is reserved for future use.
name gives the button a name that can be retrieved with window-get-name.