Textbutton (sugestion)

Jan 18, 2009 at 2:48am

Textbutton (sugestion)

Hi there!

Inspecting textbutton object, on mode setting there are (button) and (toggle).
Well, i think that could be the “message” option, where the textbutton sends an pre-configured message.
This is useful for example to send “open” to [pcontrol] on an button were we can read “speaker setup”!

thanks for reading!

#41733
Jan 18, 2009 at 5:22am

You mean like this?

– Pasted Max Patch, click to expand. –
#148926
Jan 18, 2009 at 11:45am

#148927
Jan 18, 2009 at 2:32pm

Oh, my bad – didn’t read closely enough. No, I don’t think this is possible with just the textbutton alone, but of course it’s very easy regardless.

Zachary

– Pasted Max Patch, click to expand. –
#148928
Jan 18, 2009 at 2:44pm

That’s the solution if the button text is the same we want! but if not?

And there are other thing. If you put the mouse on top of 2nd outlet it says: nothing expected here! So i never tried!
But that’s not the point!

{
“boxes” : [ {
"box" : {
"maxclass" : "newobj",
"text" : "print",
"numinlets" : 1,
"patching_rect" : [ 204.0, 54.0, 34.0, 20.0 ],
“numoutlets” : 0,
“fontname” : “Arial”,
“id” : “obj-7″,
“fontsize” : 12.0
}

}
, {
“box” : {
“maxclass” : “textbutton”,
“numinlets” : 1,
“patching_rect” : [ 24.0, 22.0, 378.0, 21.0 ],
“numoutlets” : 3,
“fontname” : “Arial”,
“outlettype” : [ "", "", "int" ],
“text” : “no! I want to message open, but with other thing in the button”,
“id” : “obj-1″,
“fontsize” : 12.0
}

}
],
“lines” : [ {
"patchline" : {
"source" : [ "obj-1", 1 ],
“destination” : [ "obj-7", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
]
}

#148929
Jan 18, 2009 at 2:58pm

On 18 janv. 09, at 15:44, Rui Fernando Caldas wrote:

> That’s the solution if the button text is the same we want! but if
> not?

Well it’s just one object more. Max is all about connecting boxes
together, right? ;-)

> And there are other thing. If you put the mouse on top of 2nd outlet
> it says: nothing expected here! So i never tried!
> But that’s not the point!

The assistance string have already been fixed for the next
incremental. Thanks.

ej

#148930

You must be logged in to reply to this topic.