VIZACT: How to Add Pause and Resume Buttons to Vizact Pages

ID: Q239599


The information in this article applies to:
  • Microsoft Vizact 2000


SUMMARY

At times, 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

Adding Pause and Resume Buttons to the Page

WARNING: ANY USE BY YOU OF THE HTML PROVIDED IN THIS ARTICLE IS AT YOUR OWN RISK. Microsoft provides this HTML "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.
  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:


  5. 
    id=docbody 
    After adding the id=docbody parameter, the <BODY> tag should look similar to the following (note that there may be other parameters besides the id parameter):
    
    <BODY id=docbody> 
  6. Locate the </BODY> tag and place the mouse pointer just before the less than sign (<).


  7. 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.


  8. Save the page and close the application that you are using to edit the page.


For more information about writing HTML, please see the following Microsoft Web site:
http://www.microsoft.com/workshop/c-frame.htm#/workshop/author/default.asp

Additional query words:

Keywords :
Version : WINDOWS:
Platform : WINDOWS
Issue type : kbhowto kbinfo


Last Reviewed: January 17, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.