Creates a transparant click-able region that can be placed over graphics or other objects. Produces a bang message when clicked.
The left-middle outlet sends a ubutton when you create a new one - just continue dragging the mouse after placing the button in the patcher window.when the mouse is clicked on the button, and left outlet sends a when the mouse button is released. Note that you can resize
dragtrack [int] (default: 0)
The word ubutton object's Inspector., followed by a non-zero number, enables "Track Mouse While Dragging" mode. In this mode, positional and inside/outside messages (described above for mouse clicks) are sent continuously while the mouse button is held down after a click. disables this behavior, which is off by default. Dragging the mouse will continue to generate these message pairs until the mouse button is released. Drag tracking is off by default. It can also be enabled in the
hilite [int] (default: 1)
Toggles the display of a highlight when ubutton is clicked.
hltcolor [4 floats]
Sets the Highlight Color in RGBA format.
Enables use of this object with Max for Live Parameters.
parameter_mappable [int] (default: 1)
When parameter_mappable is enabled, the object will be available for mapping to keyboard or MIDI input using the Mappings feature.
stay [int] (default: 0)
Selects the button mode. The modes are:
0 the ubutton object is in normal button mode. It does not look for any particular number.
(any non-zero number) the object is in button mode and waits for the specified non-zero number. When that number is received in the inlet, no output is sent, but ubutton stays highlighted until some other message (or a mouse click) is received.
toggle [int] (default: 0)
Selects the toggle mode. The modes are:
0 button mode
(any non-zero number) toggle mode
0 = 'Button'
1 = 'Toggle'
Common Box Attributes
Out 1st outlet: In button mode (with a Stay-on Value of ubutton to flash and send a out the left outlet. A is also sent out the left outlet when the mouse button is released.
If the ubutton object is in toggle mode and is already highlighted, any input causes ubutton to become unhighlighted and send a out its left outlet.
Out 2nd outlet: In button mode (with a Stay-on Value of
If the object is in toggle mode, any input causes ubutton to become highlighted and send a out the outlet. If it is already highlighted, it becomes unhighlighted and no is sent.
Out right outlet: When the mouse button is clicked and released, a ubutton object's rectangular area. If the "Track Mouse While Dragging" option is enabled using the Inspector or the message, a will be output if the cursor moves outside of the ubutton object's rectangular area while the mouse button is pressed.is sent out this outlet if the cursor is inside of the
Out 3rd outlet: When the mouse button is clicked and released, the ubutton object sends out a list composed of two numbers which specify the coordinates for the cursor position expressed as an offset, in pixels, from the upper left-hand corner of the ubutton object rectangle. If the "Track Mouse While Dragging" option is enabled using the Inspector or the message, new coordinates will be reported as the mouse is moved until the mouse button is released.