The essential syntax for creating and using a tracing object is shown in the Example One, and while
no other calls are necessary for the majority of applications, the library also provides methods
for turning tracing on and off, for closing a tracing window, and for closing all tracing windows.
Given this, all that the code for the demonstration does is tie event-handler functions to the HTML for each
element, and all that the event handlers do is make a Tracer.MsgOut () call
to display the relevant message.
Note that if the window is closed explicitly (i.e. by clicking on its 'close' button) then the demo button's
legend does not change from 'Hide Window' back to 'Show Window' automatically (unless you pass the mouse
over the test elements again). Unfortunately, this amounts to a bug in the library, in that the window does
not communicate the fact that it is closing to the execution context for the host page (this page, in this
case). Note also that this same (rather frustrating) technicality also precludes placing a 'Suspend/Resume'
button at the top of the tracer window.
A solution to these problems is quite possible, but only in non-Microsoft browsers, and providing one that
degrades gracefully in IE would clutter-up the design of what is supposed to be a very simple utility.
Happily, this glitch is completely harmless, as the tracer object detects the missing window upon the next
call to Tracer.MsgOut (upon which it resumes buffering).