<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<!-- Need to translate the title. -->
<TITLE>Undoing History palette actions</TITLE>
<!-- Do NOT edit from here... -->
<SCRIPT LANGUAGE="JavaScript">
<!--

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
//-->

<!--

//  The "refresh" function implementations are identical
//  to our regular "JavaScript-Refresh" example.  The only
//  difference from our JavaScript Refresh example is
//  we do not have a doLoad function that starts our
//  refresh timer (since we use a refresh button).

var sURL = unescape(window.location.pathname);

function refresh()
{
    window.location.href = sURL;
}

<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_popupMsg(msg) { //v1.0
  alert(msg);
}
//-->
</SCRIPT>
<!-- ... to here. -->

<!-- This is the link to the Cascading Style Sheet (CSS) file. -->
<LINK REL="stylesheet" HREF="css/bpstyles.css" TYPE="text/css">
</HEAD>
<body TEXT="#000000" TOPMARGIN="0" LEFTMARGIN="0" RIGHTMARGIN="0" BOTTOMMARGIN="0" BGCOLOR="#FFFFFF">
<TABLE WIDTH="94%" BORDER="0" ALIGN="CENTER">
	<TR>
		<TD><IMG SRC="images/blank_pixel.gif" HEIGHT="15" WIDTH="1" BORDER="0" ALT=""></TD>
	</TR>
	<TR>
		<!-- TITLE TITLE TITLE TITLE TITLE TITLE TITLE TITLE  -->
		<TD ALIGN="LEFT" CLASS="header1">Undoing History palette actions</TD>
	</TR>
	<TR>
		<TD><HR WIDTH="100%" ALIGN="CENTER"></TD>
	</TR>
	<TR>
		<!-- STEP 1 STEP 1 STEP 1 STEP 1 STEP 1 STEP 1 STEP 1  -->
		<TD CLASS="boldbody">Step 1 - Create a new image</TD>
	</TR>
	<TR>
		<TD CLASS="body">Make sure the History and the Materials palettes are displayed. Create a new image by choosing File > New, or by clicking the New Image button on the Standard toolbar, or by clicking the script for this step. Use these settings: a) set Width and Height to 300 pixels; b) choose the Raster background option; c) set the background color to white; d) and click OK.</TD>
	</TR>
	<TR>
		<TD CLASS="body"><A HREF="#" onClick="MM_goToURL('parent','Scripts/NewImage300.PspScript');return document.MM_returnValue"><IMG SRC="images/NewImage_button.gif" WIDTH="17" HEIGHT="17" BORDER="0"> Perform this step for me.</A></TD>
	</TR>
	<TR>
		<TD><IMG SRC="images/blank_pixel.gif" HEIGHT="15" WIDTH="1" BORDER="0" ALT=""></TD>
	</TR>
	<TR> 
		<!-- STEP 2 STEP 2 STEP 2 STEP 2 STEP 2 STEP 2 STEP 2   -->
		<TD ALIGN="LEFT" CLASS="boldbody">Step 2 - Choose the PaintBrush tool</TD>
	</TR>
	<TR>
		<TD CLASS="body">From the Tools toolbar, choose the PaintBrush tool.</TD>
	</TR>
	<TR>
		<TD CLASS="body"><A HREF="#" onClick="MM_goToURL('parent','Scripts/PaintBrush.PspScript');return document.MM_returnValue"><IMG SRC="images/PaintBrush_icon.gif" WIDTH="16" HEIGHT="16" BORDER="0"> Select this tool for me.</A></TD>
	</TR>
	<TR>
		<TD><IMG SRC="images/blank_pixel.gif" HEIGHT="15" WIDTH="1" BORDER="0" ALT=""></TD>
	</TR>
	<TR> 
		<!-- STEP 3 STEP 3 STEP 3 STEP 3 STEP 3 STEP 3 STEP 3   -->
		<TD ALIGN="LEFT" CLASS="boldbody">Step 3 - Set Color and Tool Options</TD>
	</TR>
	<TR>
		<TD CLASS="body">In the Materials palette, set the Foreground/Stroke property to any dark, solid color. And in the Tool Options palette, set Shape to round, Size to 12, and use the tool's defaults for the remaining settings.</TD>
	</TR>
	<TR>
		<TD><IMG SRC="images/blank_pixel.gif" HEIGHT="15" WIDTH="1" BORDER="0" ALT=""></TD>
	</TR>
	<TR>
		<!-- STEP 4 STEP 4 STEP 4 STEP 4 STEP 4 STEP 4 STEP 4   -->
		<TD ALIGN="LEFT" CLASS="boldbody">Step 4 - Place five strokes on the canvas</TD>
	</TR>
	<TR>
		<TD CLASS="body">From the upper left corner to the lower right, use the PaintBrush to paint the numbers 1 through 5 in the image. Ideally, use a continuous stroke when painting each number; this will place five "Paint Brush" actions in the image's History palette. The first number you paint will be listed toward the bottom of the History palette, and the last (most recent) number will be at the top.</TD>
	</TR>
	<TR>
		<TD><IMG SRC="images/blank_pixel.gif" HEIGHT="15" WIDTH="1" BORDER="0" ALT=""></TD>
	</TR>
	<TR>
		<!-- STEP 5 STEP 5 STEP 5 STEP 5 STEP 5 STEP 5 STEP 5   -->
		<TD ALIGN="LEFT" CLASS="boldbody">Step 5 - Undo the most recent action canvas</TD>
	</TR>
	<TR>
		<TD CLASS="body">In the History palette, undo the stroke used to create "5" by clicking the eye icon of the top-most "Paint Brush" action. When undone, the eye icon will have a yellow X over it. Since "5" was the most-recent action, clicking the Undo button in the Standard toolbar, or pressing Ctrl+Z, or choosing Edit > Undo would have performed the same function as clicking the action's eye icon in the History palette. Now click the action's eye icon again to redo the "5" paint stroke.</TD>
	</TR>
	<TR>
		<TD><IMG SRC="images/blank_pixel.gif" HEIGHT="15" WIDTH="1" BORDER="0" ALT=""></TD>
	</TR>
	<TR>
		<!-- STEP 6 STEP 6 STEP 6 STEP 6 STEP 6 STEP 6 STEP 6   -->
		<TD ALIGN="LEFT" CLASS="boldbody">Step 6 - Selectively undo the third paint stroke</TD>
	</TR>
	<TR>
		<TD CLASS="body">Hold down Ctrl and then click the eye icon for the middle "Paint Brush" action (used to create "3"). You could also selectively undo the "3" by clicking the action (not its eye icon) and then clicking the Undo Selected button in the History palette's toolbar. Selectively undone actions will have a red X over the eye icon. Before doing the next step, hold down Ctrl and click the red X eye icon to redo the "3" paint stroke.</TD>
	</TR>
	<TR>
		<TD><IMG SRC="images/blank_pixel.gif" HEIGHT="15" WIDTH="1" BORDER="0" ALT=""></TD>
	</TR>
	<TR>
		<!-- STEP 7 STEP 7 STEP 7 STEP 7 STEP 7 STEP 7 STEP 7   -->
		<TD ALIGN="LEFT" CLASS="boldbody">Step 7 - Perform an Undo to Here</TD>
	</TR>
	<TR>
		<TD CLASS="body">With all five numbers shown, click (do not hold down Ctrl this time) the eye icon for the middle "Paint Brush" action (used to create "3"). This performs an Undo to Here, undoing the stroke for "3" as well as all actions that came after it, meaning the strokes for "4" and "5". Remember: the strokes for "4" and "5" came after "3", but in the History palette their actions are listed above the action for "3".</TD>
	</TR>
	<TR>
		<TD><IMG SRC="images/blank_pixel.gif" HEIGHT="15" WIDTH="1" BORDER="0" ALT=""></TD>
	</TR>
	<TR>
		<!-- Notes and Tips Notes and Tips Notes and Tips -->
		<TD VALIGN="TOP" ALIGN="LEFT" CLASS="boldbody">Notes and Tips:</TD>
	</TR>
	<TR>
		<TD>
			<TABLE BORDER="0" CELLSPACING="2" CELLPADDING="2">
				<TR>
					<TD VALIGN="TOP"><IMG SRC="images/bullet.gif" WIDTH="5" HEIGHT="9" BORDER="0"></TD>
					<TD VALIGN="TOP" CLASS="body">This Quick Guide shows the versatility and power of the History palette compared to the standard methods of undoing and redoing actions.</TD>
				</TR>
				<TR>
					<TD VALIGN="TOP"><IMG SRC="images/bullet.gif" WIDTH="5" HEIGHT="9" BORDER="0"></TD>
					<TD VALIGN="TOP" CLASS="body">Be aware that selectively undoing actions may not always yield the intended results due to dependencies among certain actions.</TD>
				</TR>
				<TR>
					<TD VALIGN="TOP"><IMG SRC="images/bullet.gif" WIDTH="5" HEIGHT="9" BORDER="0"></TD>
					<TD VALIGN="TOP" CLASS="body">Refer to the Help system or the User Guide for more information on the History palette, including the ability to drag-and-drop actions from one image onto another, as well as the ability to save and apply a Quickscript to all open images.</TD>
				</TR>
			</TABLE>
		</TD>
	</TR>
	<TR>
   		<!-- Horizontal Rule Horizontal Rule Horizontal Rule Horizontal Rule Horizontal Rule    -->
    	<TD><HR WIDTH="100%"></TD>
	</TR>
	<TR>
		<TD ALIGN="LEFT" CLASS="boldbody">Learn More:</TD>
	</TR>
	<TR>
		<TD CLASS="body"><A HREF="../Basic scripting/index.htm"><IMG SRC="images/quickguide.gif" WIDTH="16" HEIGHT="16" BORDER="0"></A> <A HREF="../Basic scripting/index.htm">Basic scripting</A></TD>
	</TR>
	<TR>
		<TD CLASS="body"><A HREF="../Create a custom toolbar/index.htm"><IMG SRC="images/quickguide.gif" WIDTH="16" HEIGHT="16" BORDER="0"></A> <A HREF="../Create a custom toolbar/index.htm">Create a custom toolbar</A></TD>
	</TR>
	<TR>
		<TD CLASS="body"><A HREF="../Run a script on multiple files/index.htm"><IMG SRC="images/quickguide.gif" WIDTH="16" HEIGHT="16" BORDER="0"></A> <A HREF="../Run a script on multiple files/index.htm">Run a script on multiple files</A></TD>
	</TR>
	<TR>
		<TD><IMG SRC="images/blank_pixel.gif" HEIGHT="15" WIDTH="1" BORDER="0" ALT=""></TD>
	</TR>
</TABLE>
</body>
</HTML>
