<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<?xml-stylesheet href="./_c74_ref.xsl" type="text/xsl"?>

<!--This is an automatically generated file. DO NOT EDIT THIS FILE DIRECTLY. Rather, use the _ref.xml files found in the 'edits' folder.-->
<c74object name="message" module="max" category="Basic">
	<digest>
		Send any message
	</digest>
	<description>
		<o>message</o> displays and sends any given message with the capability to handle specified arguments.
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			Max
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="INLET_TYPE">
			<digest>
				Trigger the Message, set Changes It
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="1" type="INLET_TYPE">
			<digest>
				Set the Message Without Output
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="OUTLET_TYPE">
			<digest>
				Message Result
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
	</outletlist>
	<palette category="Basic" action="message" order="2" pic="message.svg" />
	<!--ARGUMENTS-->
	<objarglist>
		<objarg name="message" optional="0" type="list">
			<digest>
				Any text
			</digest>
			<description>
				The initial contents of the <o>message</o> box are typed in when the patcher window is unlocked. Any message can be contained in a <o>message</o> box. Certain characters have special meaning.
			</description>
		</objarg>
		<objarg name="changeable-arg" optional="0" type="symbol">
			<digest>
				Changeable argument
			</digest>
			<description>
				A dollar sign (<m>$</m>), followed immediately by a number in the range 1-9, is a changeable argument. This argument's value can be replaced by the corresponding item in a list received in the inlet. (Example: <m>$2</m> stores the second item in a list as its value before sending out the contents of the <o>message</o> box .) The value of a changeable argument is initially <m>0</m>.
			</description>
		</objarg>
		<objarg name="comma" optional="0" type="symbol">
			<digest>
				Divide a message into separate messages
			</digest>
			<description>
				A comma (<m>,</m>) divides a message into separate messages which will be sent out in order. (Example: <m>3, 4, 5</m> sends out <m>3</m>, then <m>4</m>, then <m>5</m>.)
			</description>
		</objarg>
		<objarg name="backslash" optional="0" type="symbol">
			<digest>
				Escape special characters
			</digest>
			<description>
				A backslash (<m>\</m>) is used to negate (escape) the traits of a special character. When a backslash immediately precedes a dollar sign, comma, or semicolon, the character is treated as a normal character. (Example: <m>Notes played were C\, E\, and G</m>.)
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="bang">
			<arglist />
			<digest>
				Function depends on inlet
			</digest>
			<description>
				In left inlet: Sends out the contents of the <o>message</o> box. A mouse click on the <o>message</o> box has the same effect.
				<br />
				<br />
				In right inlet: Sets the contents of the <o>message</o> box to 'bang' without triggering output.
			</description>
		</method>
		<method name="int">
			<arglist>
				<arg name="input" optional="0" type="int" />
			</arglist>
			<digest>
				Function depends on inlet
			</digest>
			<description>
				In left inlet: The number replaces the value stored in the argument <m>$1</m>, if such an argument exists, then sends out the contents of the <o>message</o> box.
				<br />
				<br />
				In right inlet: Sets the contents of the <o>message</o> box without triggering output.
			</description>
		</method>
		<method name="float">
			<arglist>
				<arg name="input" optional="0" type="float" />
			</arglist>
			<digest>
				Function depends on inlet
			</digest>
			<description>
				In left inlet: The number replaces the value stored in the argument <m>$1</m>, if such an argument exists, then sends out the contents of the <o>message</o> box.
				<br />
				<br />
				In right inlet: Sets the contents of the <o>message</o> box without triggering output.
			</description>
		</method>
		<method name="list">
			<arglist>
				<arg name="input" optional="0" type="list" />
			</arglist>
			<digest>
				Function depends on inlet
			</digest>
			<description>
				Each item in the list replaces the value of its corresponding <m>$</m> argument, if such an argument exists, then sends out the contents of the <o>message</o> box.
				<br />
				<br />
				In right inlet: Sets the contents of the <o>message</o> box without triggering output.
			</description>
		</method>
		<method name="anything">
			<arglist>
				<arg name="message" optional="0" type="list" />
			</arglist>
			<digest>
				Function depends on inlet
			</digest>
			<description>
				See the <m>list</m> listing
			</description>
		</method>
		<method name="append">
			<arglist>
				<arg name="message" optional="0" type="list" />
			</arglist>
			<digest>
				Add text at end of current message
			</digest>
			<description>
				The word <m>append</m> followed by any message will set the <o>message</o> box to display that message after any text which it already contains without triggering output.
			</description>
		</method>
		<method name="(mouse)">
			<digest>
				Outputs <o>message</o> box contents
			</digest>
			<description>
				A mouse click on a <o>message</o> box sends its contents out the object's outlet.
			</description>
		</method>
		<method name="prepend">
			<arglist>
				<arg name="message" optional="0" type="list" />
			</arglist>
			<digest>
				Add text in front of current contents
			</digest>
			<description>
				The word <m>prepend</m> followed by any message will set the <o>message</o> box to display that message before any text which it already contains without triggering output.
			</description>
		</method>
		<method name="set">
			<arglist>
				<arg name="message" optional="0" type="list" />
			</arglist>
			<digest>
				Sets contents of message box
			</digest>
			<description>
				The word <m>set</m>, followed by a message, sets the contents of the <o>message</o> box to that new message, without triggering output. The word <m>set</m> by itself clears the contents of the <o>message</o> box .
			</description>
		</method>
		<method name="symbol">
			<arglist>
				<arg name="input" optional="0" type="symbol" />
			</arglist>
			<digest>
				Function depends on inlet
			</digest>
			<description>
				In left inlet: The symbol replaces the value stored in the argument <m>$1</m>, if such an argument exists, then sends out the contents of the <o>message</o> box.
				<br />
				<br />
				In right inlet: Sets the contents of the <o>message</o> box without triggering output.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<attributelist>
		<attribute name="bgcolor" get="1" set="1" type="atom" size="1">
			<digest>
				TEXT_HERE
			</digest>
			<description>
				TEXT_HERE
			</description>
			<attributelist>
				<attribute name="invisible" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="legacydefault" get="1" set="1" type="atom" size="4" value="0.867 0.867 0.867 1." />
				<attribute name="obsolete" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
			</attributelist>
		</attribute>
		<attribute name="bgcolor2" get="1" set="1" type="atom" size="1">
			<digest>
				TEXT_HERE
			</digest>
			<description>
				TEXT_HERE
			</description>
			<attributelist>
				<attribute name="invisible" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="legacydefault" get="1" set="1" type="atom" size="4" value="0.685 0.685 0.685 1." />
				<attribute name="obsolete" get="1" set="1" type="int" size="1" value="1" />
			</attributelist>
		</attribute>
		<attribute name="bgfillcolor" get="1" set="1" type="float" size="4">
			<digest>
				Background color
			</digest>
			<description>
				Sets the background color of the <o>message</o> box in RGBA format. The <o>message</o> box can be configured to display a gradient using the <link type="vignette" module="core" name="format_palette" anchor="gradients">format palette</link>.
			</description>
			<attributelist>
				<attribute name="basic" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="category" get="1" set="1" type="symbol" size="1" value="Color" />
				<attribute name="fill" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="introduced" get="1" set="1" type="symbol" size="1" value="7.0.0" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Background Color" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="preview" get="1" set="1" type="symbol" size="1" value="rect_fill" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="0" />
				<attribute name="selfsave" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="set" get="1" set="1" type="pointer" size="1" value="pointer" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="rgba" />
			</attributelist>
		</attribute>
		<attribute name="dontreplace" get="1" set="1" type="int" size="1">
			<digest>
				Don't Restore Contents
			</digest>
			<description>
				TEXT_HERE
			</description>
			<attributelist>
				<attribute name="default" get="1" set="1" type="int" size="1" value="0" />
				<attribute name="introduced" get="1" set="1" type="symbol" size="1" value="7.0.4" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Don't Restore Contents" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="onoff" />
			</attributelist>
		</attribute>
		<attribute name="gradient" get="1" set="1" type="atom" size="1">
			<digest>
				TEXT_HERE
			</digest>
			<description>
				TEXT_HERE
			</description>
			<attributelist>
				<attribute name="invisible" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="legacydefault" get="1" set="1" type="atom" size="1" value="0" />
				<attribute name="obsolete" get="1" set="1" type="int" size="1" value="1" />
			</attributelist>
		</attribute>
		<attribute name="style" get="1" set="1" type="symbol" size="1">
			<digest>
				Style
			</digest>
			<description>
				TEXT_HERE
			</description>
			<attributelist>
				<attribute name="category" get="1" set="1" type="symbol" size="1" value="Appearance" />
				<attribute name="introduced" get="1" set="1" type="symbol" size="1" value="7.0.0" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Style" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="style" />
			</attributelist>
		</attribute>
	</attributelist>
	<!--MENU ITEMS-->
	<menuitemlist>
		<menuitem name="Color">
			<digest>
				Color... menu item
			</digest>
			<description>
				Choosing the <b>Color...</b> menu item from the <b>Object</b> menu when the object is selected opens a <link type="vignette" module="core" name="color_palette">color picker</link>, permitting adjustment to the appearance of the <link type="refpage" name="message">message box</link>.
			</description>
		</menuitem>
	</menuitemlist>
	<!--EXAMPLE-->
	<examplelist>
		<example img="message.png" caption="Send a simple message, or construct a message of any degree of complexity" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="append" />
		<seealso name="atoi" />
		<seealso name="comment" />
		<seealso name="itoa" />
		<seealso name="jit.cellblock" />
		<seealso name="prepend" />
		<seealso name="receive" />
		<seealso name="basicchapter01" module="max" type="tutorial" />
		<seealso name="basicchapter02" module="max" type="tutorial" />
	</seealsolist>
	<misc name="Output">
		<entry name="anything">
			<description>
				The contents of the <o>message</o> box are sent out the outlet. If a semicolon is present, the rest of the message (or up to the next semicolon) is sent to the specified <o>receive</o> object, rather than out the outlet.
			</description>
		</entry>
	</misc>
</c74object>
