Microsoft KB Archive/239599

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

Article ID: 239599

Article Last Modified on 8/14/2007

-

APPLIES TO


 * Microsoft Vizact 2000 Standard Edition

-



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
 In Vizact, save the page to which you want to add a pause and resume button, and then quit Vizact. Use another HTML editing program, such as Microsoft FrontPage or Notepad, to open the page for editing. Locate the  tag in the document.  Add the following parameter to the  tag: id=docbody After adding the id=docbody parameter, the  tag looks similar to the following (note that there may be other parameters other than the ID parameter):   Locate the </BODY> tag and put the mouse pointer just before the less than sign (<).</li>  Type or paste the following HTML code into the page: <BUTTON ID="pauseBtn" onclick="docbody.pause;  pauseBtn.disabled = true; resumeBtn.disabled =   false;"> 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. </li> Save the page and close the application that you are using to edit the page.</li></ol>

Keywords: kbfaq kbhowto kbinfo KB239599

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.