<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?xml-stylesheet href="_c74_vig.xsl" type="text/xsl"?>
<vignette name="The Wind Object" package="Max">
<h1>
The Wind Object
</h1>
<p>
The Wind object is a property of a Patcher that represents its window. You cannot create a new Wind or access other types of windows such as that of a Max table object.
</p>
	<jsproperty_list name="Wind">
		<jsproperty name="assoc" get="1" set="0" type="Patcher">
			<description>
				The Patcher object associated with the window.
        	</description>
    	</jsproperty>

		<jsproperty name="assocclass" get="1" set="0" type="String">
			<description>
				The Max class of the object associated with the window.
        	</description>
    	</jsproperty>

		<jsproperty name="dirty" get="1" set="1" type="Boolean">
			<description>
				Has the window’s contents been modified? This property is read-only in the runtime version of Max.
        	</description>
    	</jsproperty>

		<jsproperty name="hasgrow" get="1" set="1" type="Boolean">
			<description>
				Does the window have a grow area?
        	</description>
    	</jsproperty>

		<jsproperty name="hashorizscroll" get="1" set="0" type="Boolean">
			<description>
				Does the window have a horizontal scroll bar?
        	</description>
    	</jsproperty>

		<jsproperty name="hasvertscroll" get="1" set="0" type="Boolean">
			<description>
				Does the window have a vertical scroll bar?
        	</description>
    	</jsproperty>

		<jsproperty name="haszoom" get="1" set="1" type="Boolean">
			<description>
				Does the window have a zoom box?
        	</description>
    	</jsproperty>

		<jsproperty name="hastitlebar" get="1" set="1" type="Boolean">
			<description>
				Does the window have a window title bar?
        	</description>
    	</jsproperty>

		<jsproperty name="location" get="1" set="1" type="Array">
			<description>
				An array of four coordinates (left, top, right, bottom) representing the window’s location in global coordinates.
        	</description>
    	</jsproperty>

		<jsproperty name="next" get="1" set="0" type="Wind">
			<description>
				The Wind object of the next patcher visible in the application’s list of windows The first Wind object can be accessed using the frontpatcher property of the Max object (as max.frontpatcher.wind).
        	</description>
    	</jsproperty>

		<jsproperty name="size" get="1" set="1" type="Array">
			<description>
				An array of two coordinates (width, height) representing the window’s size.
        	</description>
    	</jsproperty>

		<jsproperty name="title" get="1" set="1" type="String">
			<description>
				The window’s title.
        	</description>
    	</jsproperty>

		<jsproperty name="visible" get="1" set="1" type="Boolean">
			<description>
				Can you see the window?
        	</description>
    	</jsproperty>
    </jsproperty_list>

	<jsmethod_list name="Wind">
  		<jsmethod name="bringtofront">
		    <description>
		    	Move the window in front of all other windows.
		    </description>
  		</jsmethod>

  		<jsmethod name="scrollto">
		    <arglist>
		    	<arg name="x" type="Number"/>
		    	<arg name="y" type="Number"/>
		    </arglist>
		    <description>
		    	Scroll the window so that <i>x</i> and <i>y</i> are at the top-left corner.
		    </description>
  		</jsmethod>

  		<jsmethod name="sendtoback">
		    <description>
		    	Moves the window behind all other windows
		    </description>
  		</jsmethod>

  		<jsmethod name="setlocation">
		    <arglist>
		    	<arg name="left" type="Number"/>
		    	<arg name="top" type="Number"/>
		    	<arg name="bottom" type="Number"/>
		    	<arg name="right" type="Number"/>
		    </arglist>
		    <description>
		    	Set the global location of the window according to the coordinates passed in as arguments.
		    </description>
  		</jsmethod>
    </jsmethod_list>
</vignette>
