Forums > MaxMSP

Textbutton (sugestion)

January 18, 2009 | 2:48 am

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!


January 18, 2009 | 5:22 am

You mean like this?

– Pasted Max Patch, click to expand. –


f.e
January 18, 2009 | 11:45 am


January 18, 2009 | 2:32 pm

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. –

January 18, 2009 | 2:44 pm

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" : [ ]
}

}
]
}


January 18, 2009 | 2:58 pm

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


Viewing 6 posts - 1 through 6 (of 6 total)