VIZACT: How to Add Pause and Resume Buttons to Vizact Pages (239599)



The information in this article applies to:

  • Microsoft Vizact 2000

This article was previously published under Q239599

SUMMARY

Sometimes you may want to stop all timing on a page or even to restart the timing later. Vizact does not provide built-in functionality to do this. This article describes how you can add a pause and resume button to the page that stops and then restarts all timing on the page.

MORE INFORMATION

Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.

Adding Pause and Resume Buttons to the Page

  1. In Vizact, save the page to which you want to add a pause and resume button, and then quit Vizact.
  2. Use another HTML editing program, such as Microsoft FrontPage or Notepad, to open the page for editing.
  3. Locate the <BODY> tag in the document.
  4. Add the following parameter to the <BODY> tag:
    id=docbody
    					
    After adding the id=docbody parameter, the <BODY> tag looks similar to the following (note that there may be other parameters other than the ID parameter):
    <BODY id=docbody>
    					
  5. Locate the </BODY> tag and put the mouse pointer just before the less than sign (<).
  6. Type or paste the following HTML code into the page:
    <!-- this button pauses the document, disables itself, 
    and enables the resume button -->
    <BUTTON ID="pauseBtn" onclick="docbody.pause();
       pauseBtn.disabled = true; resumeBtn.disabled =
       false;"> Pause
    </BUTTON>
    
    <!-- this button resumes the document, disables itself,
    and enables the pause button -->
    <BUTTON ID="resumeBtn"
       DISABLED="true" onclick="docbody.resume();
       pauseBtn.disabled = false; resumeBtn.disabled =
       true;"> Resume
    </BUTTON>
    						
    The first button is labeled "pause" and when it is clicked, all timing on the page stops. The second button is labeled "resume" and when it is clicked, all timing on the page starts.
  7. Save the page and close the application that you are using to edit the page.
For more information about how to write HTML, visit the following Microsoft Web site: http://msdn.microsoft.com/library/en-us/dnhtmau/html/beghtml.asp?frame=true

Modification Type:MajorLast Reviewed:6/23/2005
Keywords:kbhowto kbinfo KB239599