A newer version of Max is available. Click here to access the latest version of this document.

button

Flash on any message, send a bang

Description

button is used to trigger other messages and processes.

Arguments

None.

Messages

bang Performs the same function as anything.
int input [int]
Performs the same function as anything.
float input [float]
Performs the same function as anything.
list input [list]
Performs the same function as anything.
anything input [list]
When any message is received in the inlet, button flashes briefly and a bang is sent out the outlet.
(mouse) Clicking on the button object will cause it to flash briefly and send a bang out the outlet.

Attributes

Name Type g/s Description
bgcolor float Sets the background color of the button object in RGBA format.
blinkcolor float Sets the color of the button object in RGBA format.
fgcolor float Sets the color of the button object in RGBA format.
outlinecolor float Sets the color of the button object in RGBA format.

Information for box attributes common to all objects

Menu Items

Name Description
Color Choosing the Color... menu item from the Object menu when the object is selected opens a color picker, permitting adjustment to the appearance of the button object.

Output

bang: A mouse click or any message in the inlet causes button to flash and send out bang.

Examples

Triggers other messages and processes.... Converts other messages to a bang

See Also

Name Description
bangbang Send a bang to many places, in order
loadmess Send a message when a patch is loaded
matrixctrl Matrix switch control
pictctrl Picture-based control
trigger Send input to many places, in order
ubutton Transparent button, sends a bang
Max Basic Tutorial 2: Bang! Max Basic Tutorial 2: Bang!