<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet href="_c74_vig.xsl" type="text/xsl"?>
<vignette name="Styles" package="Max" rankfactor="3">

  <h1>Styles</h1>
  <p>
		Max lets you define styles that you can use as you patch; you can
    standardize things like the look of user interface objects, font sizes
    and formats, and the look of max objects. You can apply a style to
    a specific Max patch, create your own personal library of styles to be
    applied as you patch, or make use of "factory styles" that come with Max.
    You can also use styles in connection with Max templates to create
    your own unique default patching environment.
	</p>
  <p>
		Styles are created and managed using the
		<link type="vignette" module="core" name="format_palette">Format palette</link>.
	</p>

  <br/>
  <space/>
  <bluebox>
    <h2>Applying a style to a patcher</h2>
    <ul>
      <li>
    		Click on an empty section of a patcher, then click on the Format Button
        to open the
        <link type="vignette" module="core" name="top_patcher_toolbar">Format
        palette toolbar</link>.
        Click on the style menu on the left-hand side of the toolbar to show
        the style menu.
  		</li>
    </ul>
    <p>
      <img src="images/styles_menu.png"/>
    </p>
    <p>
  		The style menu lets you choose from styles you have created and added to
      your own Max library (available using the <b>Library</b> entry), styles
      recently used in the current patcher (which will be listed just below the
      Library entry), or from Max Factory Styles (located at the bottom of the
      menu).
  	</p>
    <ul>
      <li>
    		Choose any of these styles from the pull-down menu. The menu will
        display the current style, and that style will be applied to your
        patcher.
  		</li>
    </ul>
    <p>
      <img src="images/styles_applied.png"/>
    </p>
  </bluebox>

  <br/>
  <space/>
  <bluebox>
    <h2>Creating a new style</h2>
    <ul>
      <li>
        Click on an empty section of a patcher, then click on the Format Button
        to open the
        <link type="vignette" module="core" name="top_patcher_toolbar">Format
        palette toolbar</link>. Make your desired changes to the interface.
      </li>
      <li>
    		Click on the style menu on the left-hand side of the Format palette
        toolbar and choose <b>Define New Style</b> from the pull-down menu.
        The style dialog will appear.
  		</li>
    </ul>
    <p>
      <img src="images/styles_new2.png"/>
    </p>
    <ul>
      <li>
    		Type in the name of your style. When you hit a carriage return, the
        style will be created and be added to a list of patcher styles.
		  </li>
    </ul>
  </bluebox>

  <br/>
  <space/>
  <bluebox>
    <h2>Adding a Style to your Library</h2>
    <ul>
      <li>
      	A Library Style is dependency-free, saved to disk, and does not rely on any other Styles.

        To add a Library Style, click on an empty section of a patcher, then click on the Format Button
        to open the
        <link type="vignette" module="core" name="top_patcher_toolbar">Format
        palette toolbar</link>. Select the style for your patcher that you want
        to save to the Library.
  		</li>
      <li>
    		Click on the style menu and choose <b>Copy &lt;style name&gt;</b> to
        Library from the pull-down menu.
  		</li>
    </ul>
    <p>
      <img src="images/styles_2library1.png"/>
    </p>
    <p>
  		The style you have selected will now appear in the Library tab of the
      Style menu
  	</p>
    <p>
      <img src="images/styles_2library2.png"/>
    </p>
    <p>
  		Library styles can be found at <i>~/Documents/Max 8/Styles</i>
  		on a Macintosh, and <i>%HOMEPATH%\Documents\Max 8\Styles</i>
  		on a Windows system.
  	</p>
  </bluebox>

  <br/>
  <space/>
  <bluebox>
    <h2>Removing a style from your library</h2>
    <ul>
      <li>
        Click on an empty section of a patcher, then click on the Format Button
        to open the
        <link type="vignette" module="core" name="top_patcher_toolbar">Format
        palette toolbar</link>.
  		</li>
      <li>
        Click on the style menu on the left-hand side of the Format palette
        toolbar and hover over the <b>Library</b> menu entry. This will display
        all of the styles you have added to the Library.
      </li>
      <li>
      	Click on the deletion button to remove a specific style.
    	</li>
    </ul>
    <p>
      <img width="267.5" src="images/styles_remove.png"></img>
    </p>
    <ul>
      <li>
        To remove all styles that are not being used in a patch, select <b>Remove Unused Styles</b> from the style menu. This
        will removed all unsed styles that may have been inherited from copying and pasting a different user's patch, or opening a
        different user's patch on your machine.
  		</li>
    </ul>
    <p>
      <img width="317" src="images/styles_remove_unused.png"></img>
    </p>
  </bluebox>

  <br/>
  <space/>
  <bluebox>
    <h2>Modifying a style</h2>
    <ul>
      <li>
        Click on an empty section of a patcher, then click on the Format Button
        to open the
        <link type="vignette" module="core" name="top_patcher_toolbar">Format
        palette toolbar</link>. Use the Format palette to make your desired
        changes to the object. When you do, you will notice that a plus
        sign appears alongside the current style in the style menu to
        indicate that the style has been changed.
		  </li>
    </ul>
    <p>
      <img src="images/styles_modify1.png"/>
    </p>

    <ul>
      <li>
    		Click on the style menu on the left-hand side of the Format palette
        toolbar. Making changes in an object with a style applied to it will
        enable several menu options in the pull-down menu.
  		</li>
    </ul>
    <p>
      <img src="images/styles_modify2.png"/>
    </p>

    <ul>
      <li>
  		    Choose <b>Redefine</b> to redefine the current style to match
          your changes.
  		</li>
      <li>
  		    Choose <b>Revert</b> to revert to the style you originally applied to the object.
  		</li>
      <li>
    		Choose <b>Rename</b> to rename the style you originally applied to the
        object. When you choose this option, the style dialog will appear
  		</li>
    </ul>
    <p>
      <img src="images/styles_rename1.png"/>
    </p>
    <ul>
      <li>
    		Type in the name of your style. When you hit a carriage return, the style will be created and be added to a list of patcher styles.
  		</li>
    </ul>
    <p>
      <img src="images/styles_rename2.png"/>
    </p>
    <ul>
      <li>
    		Choose <b>Clear Style</b> to return the attributes of the object to their default state (precisely as if you had selected
    		<b>Set to Default Values</b> from Max's Object menu).
  		</li>
    </ul>
  </bluebox>

  <br/>
  <space/>

  <seealsolist>
    <seealso name="format_palette_patcher_level" type="vignette" module="core"/>
    <seealso name="format_palette" type="vignette" module="core"/>
  </seealsolist>
</vignette>
