How to toggle comments on and off?

Benson's icon

I want users of my artefact to be able to toggle a 'Help' function where, once they press it, lots of comments come up and if they press it again, all of the help comments disappear.

Bill 2's icon

Toggle -> sel 1 0 -> left outlet -> Message box: "set Lots and lots of help info!" -> comment
-> middle outlet -> Messages box: "set" -> (same) comment

Nate's icon

Send the comment the message:

hidden 0
or
hidden 1

This hides or shows the comment in the locked patcher.

Bill 2's icon

Wow Nate - even better! But where is that documented?

Nate's icon

The documentation is somewhat hidden, but if you open the full reference of the object there is a little dropdown menu called "Common Box Attributes" . This shows attributes you can set on most if not all objects.

Bill 2's icon

Thanks Nate. I might never have found that.

These common box attributes seem to include many things that can be adjusted in the inspector. Handy to know! :-)