Abstract:
A method and apparatus pertaining to annotating a document window on a display device of a computer-based system. An annotation window is displayed over a selected portion of the document window where the annotation window is defined by a transparent window area bounded by a border. The annotation window enables the selected portion of the document window to be visible through the annotation window. Annotations are displayed within the annotation window where the annotations have a transparent background enabling the selected portion of the document windows to be visible through the transparent background of the annotations. When the annotation window is closed, the annotations are embedded into a contained document shown in the document window so that the annotations and the document are visible simultaneously in the selected portion of the document window.

Description:
RELATED APPLICATION 
     This is a continuation of application Ser. No. 08/316,113, filed on Sep. 30, 1994, now abandoned. 
    
    
     BACKGROUND OF THE INVENTION 
     1. Field of the Invention 
     The present invention relates to the field of annotation of electronic documents and freehand drawing applications that incorporate sound. 
     2. Background Information 
     Definition 
     An application program (or simply, application) is software that is not part of the underlying computer&#39;s operating system and performs a collection of related functions on behalf of users and under their control. Application programs allow users to create and manage different kinds of information. Examples of applications include, but are not limited to, spreadsheets, word processors, drawing packages, presentation graphics. An application can be characterized by (a) a user interface, that is, the way in which users interact with the application, (b) a data storage scheme, that is, the way in which the application stores its data, and (c) the internal manipulations and transformations that the application applies to the data. In general, applications that fall in the same category have similar behavior but differ in their user interfaces, their data storage schemes, and their internal transformations. For example, there are several dozen word processing programs currently available. 
     A document refers to the data that users create using an application program. Users retrieve, manipulate and save the contents of a document using the same application that they used to create the document in the first place. Examples of documents include spreadsheets created by spreadsheet programs, reports created by word processors, and others. 
     Annotation refers to descriptive or explanatory comments, drawings or notes that are attached as remarks to portions of a document. An annotation window refers to a window that displays annotation as it is created or edited. An annotation object refers to what is contained in an annotation window. As will be shown later, in the present invention, when the annotation window is closed, the annotation object becomes embedded (or &#34;pasted&#34;) into the document. 
     An annotation mark is a mark placed on the document to let a user know that there is an annotation object associated with the annotation mark. While annotation marks are traditionally used in the prior art, annotation marks are not needed when using the present invention. 
     An object refers to one or more drawings created by the present invention. All drawings contained in one window are referred to as one object. Thus, one object is created per window. 
     Object linking and embedding (OLE) refers to a mechanism that allows certain documents called container documents (or client documents in OLE jargon) to contain information created by applications, such as an OLE server, different from those used to create the container document. A container document is created using a container application. A user-oriented description of OLE is found in Microsoft Windows User&#39;s Guide (Microsoft Corp., 1992). As the name implies, OLE supports two different types of containment: embedding and linking. When the foreign data is embedded in a container document, it physically resides within the container document. When the foreign data is linked to the container document, only a reference to the foreign data resides in the container document. The contents comprising the foreign data usually reside elsewhere, typically in another electronic file in the file system. Further details regarding OLE may be found in Object Linking &amp; Embedding Version 1.0 Reference Guide(Microsoft Corp., 1992). 
     Description of the Related Prior Art 
     Currently, annotation under Microsoft Windows may be performed by one of the two schemes described below: First, if a user desires to include annotation in a document, a separate application program is used to draw an annotation object to be inserted into the document using OLE. This is illustrated in FIGS. 1a and 1b. Referring to FIG. 1a, after the user opens a document 14, if the user desires to include an annotation at a location 12, he/she invokes a separate application program for annotation so that an annotation window 16 is displayed over document 14. The user creates an annotation object 18 by entering or drawing various characters and/or pictures on window 16. When the annotation is complete, annotation window 16 disappears leaving an annotation mark 20 to indicate that there is an annotation object at location 12, as shown in FIG. 1b. 
     A disadvantage of this scheme is that an annotation cannot be done &#34;in-place.&#34; An &#34;in-place&#34; annotation allows a user to create an annotation object directly over the portion of the document being annotated and allows both the annotation object and the portion of the document being annotated to be visible. In FIG. 1a, if annotation window 16 is placed over the portion of the text at location 12, annotation window 16 will cover up the portion of the underlying text. Because annotation window 16 has an opaque background, the portion of the text under annotation window 16 will not be visible. 
     In addition, once the annotation is completed, because only annotation mark 20 is shown at location 12, to see annotation object 18, one needs to reopen annotation window 18. When annotation window 16 is reopened, it is not placed at location 12 since if it does, the portion of the text near location 12 under window 16 will not be visible. This scheme is inconvenient since the portion of the document to be annotated becomes invisible if annotation window 16 is placed at the annotation location. To show both the text of the document being annotated and annotation object 18, they have to be placed at different locations. 
     Second, each application can be programmed to include the capability of &#34;in-place&#34; annotation instead of using a separate annotation application program. However, this scheme is impractical for the three reasons described below: First, there is high labor overhead in reprogramming each application in which annotation is desired. Second, there is high labor overhead in reprogramming for every type of desired annotation in each application. Third, it is unlikely that an application designer will be able to anticipate every future type of annotation that will be desired by the application&#39;s users. 
     The purpose of the present invention is to overcome the deficiencies of the existing state of the art by performing &#34;in-place&#34; annotation using a separate annotation application program to avoid reprogramming existing applications. The present invention employs novel application-independent methods for creating, editing and displaying freehand annotation objects on transparent windows so that the annotation objects can be placed over the desired locations on the document and be seen with the portions of the document under the annotation objects. This effectively allows the user to draw the annotation objects directly over the desired annotation locations on the document. Since the present invention requires no special assistance from the application program that displays the container document, there is no need to reprogram the document&#39;s application program. In addition, the present invention provides methods and apparatus for supporting sound during &#34;in-place&#34; annotation. The present invention can be conveniently used with various application programs using OLE. 
     SUMMARY OF THE INVENTION 
     A method and apparatus pertaining to annotating a document window on a display device of a computer-based system. An annotation window is displayed over a selected portion of the document window where the annotation window is defined by a transparent window area bounded by a border. The annotation window enables the selected portion of the document window to be visible through the annotation window. Annotations are displayed within the annotation window where the annotations have a transparent background enabling the selected portion of the document windows to be visible through the transparent background of the annotations. When the annotation window is closed, the annotations are embedded into a contained document shown in the document window so that the annotations and the document are visible simultaneously in the selected portion of the document window. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1a presents a prior art annotation window displayed on a document. 
     FIG. 1b presents a prior art annotation mark inserted into the document in FIG. 1a. 
     FIG. 2 is a block diagram of an exemplary computer system using the present invention. 
     FIG. 3a is a document to be marked up using &#34;in-place&#34; annotation without sound according to the present invention. 
     FIG. 3b presents an annotation window placed over the document of FIG. 3a according to the present invention. 
     FIG. 3c presents the annotation window of FIG. 3b after an annotation object is drawn according to the present invention. 
     FIG. 3d presents the annotation window of FIG. 3c after more drawings are added to the annotation object of FIG. 3c according to the present invention. 
     FIG. 3e presents the annotation object of FIG. 3d embedded in the document of FIG. 3a upon closing the annotation window of FIG. 3d according to the present invention. 
     FIG. 3f presents the annotation window of FIG. 3d after more drawings are added to the annotation object of FIG. 3d according to the present invention. 
     FIG. 3g presents the annotation object of FIG. 3f embedded in the document of FIG. 3a upon closing the annotation window of FIG. 3f according to the present invention. 
     FIG. 4a presents an annotation window having an annotation object and its associated sound to mark up a document according to the present invention. 
     FIG. 4b presents the annotation window of FIG. 4a after additional annotation is made according to the present invention. 
     FIG. 4c presents the annotation object of FIG. 4b embedded in the document of FIG. 4a upon closing the annotation window of FIG. 4b according to the present invention. 
     FIG. 4d presents the document of FIG. 4c having the annotation object and its associated sound being played according to the present invention. 
     FIG. 5 presents an annotation window of the present invention used to point to and describe various items shown on a display. 
     FIG. 6a presents an annotation window of the present invention displayed over a map to provide a direction. 
     FIG. 6b presents the annotation window of FIG. 6a after an additional direction is added to the annotation object. 
     FIG. 6c presents the annotation object of FIG. 6b embedded in the map of FIG. 6a upon closing the annotation window of FIG. 6b according to the present invention. 
     FIG. 7a is an example of a rough draft figure with narration created by the present invention. 
     FIG. 7b is the rough draft figure of FIG. 7a having additional drawings and sound added. 
     FIG. 7c is the rough draft figure of FIG. 7b having additional drawings and sound added. 
     FIG. 7d is the finished picture of the rough draft figure of FIG. 7c. 
     FIG. 8 is an example of a class session created by the present invention. 
     FIG. 9a is a window having a menu for colors according to the present invention. 
     FIG. 9b is a window having a tool bar for colors according to the present invention. 
     FIG. 10a presents an annotation window having a transparent window background and a transparent object background over a document according to the present invention. 
     FIG. 10b presents an annotation window having a transparent window background and a non-transparent object background over a document. 
     FIG 11a is a draw data, with embedded sequence marks, created by the present invention. 
     FIG. 11b is a sound data, with embedded sequence marks, created by the present invention. 
     FIG. 12 is the sound data of FIG. 11b after being compressed according to the present invention. 
     FIG. 13 presents a clock window and a present invention&#39;s window. 
    
    
     DETAILED DESCRIPTION OF THE INVENTION 
     General System Configuration 
     FIG. 2 shows a typical computer system that can be used to perform application-independent &#34;in-place&#34; annotation or drawings with sound according to the present invention. The computer system may include a computer host 1000 having a memory 1008 and a central processor 1002. Memory 1008 and central processor 1002 are those typically found in most general purpose computers and almost all special purpose computers. In fact, these devices contained within computer host 1000 are intended to be representative of the broad category of data processors and memory. Many commercially available computers having different capabilities may be used in the present invention. 
     A system bus 1016 is provided for communicating information. A display device 1010 utilized with the computer system of the present invention may be a liquid crystal device, cathode ray tube or other display device suitable for creating graphic images and/or alphanumeric characters recognizable to a user. The computer system may also include an alphanumeric input device 1012 including alphanumeric and function keys coupled to bus 1016 for communicating information and command selections to central processor 1002, and a cursor control device 1018 coupled to bus 1016 for communicating user input information and command selections to central processor 1002 based on a user&#39;s hand movement. Cursor control device 1018 allows the user to dynamically signal the two-dimensional movement of the visual symbol (or cursor) on a display screen of display device 1010. Many implementations of cursor control device 1018 are known in the art, including a track ball, mouse, pen, joystick or special keys on the alphanumeric input device 1012, all capable of signaling movement in a given direction or manner of displacement. 
     The computer system of FIG. 2 also includes an interface device 1019 coupled to bus 1016 for communicating information to and from the computer system. Interface device 1019 may be coupled to a microphone 1020, a speaker 1022, a modem, a network system, other memory devices, other computers, etc. Also available for interface with the computer system of the present invention is a data storage device 1017 such as a magnetic disk or optical disk drive, which may be communicatively coupled with bus 1016, for storing data and instructions. The computer system of FIG. 2 may also include a printer 1014 for outputting data. 
     Various uses of the Present Invention 
     Before discussing the details of the features of the present invention, various uses of the present invention are described with reference to FIGS. 3a-3g, 4a-4d, 5, 6a-6c, 7a-7d and 8 to illustrate the benefits and capabilities of the present invention. It will be appreciated that there are other ways to use the present invention besides those described below. To illustrate the sound capability of the present invention, the figures use cartoon-style &#34;balloons&#34; to indicate what is being said, recorded or played. In reality, these balloons do not appear on the display. The words shown in the balloons are spoken and recorded as one creates the objects and are played as one re-plays the recorded sound. The balloons are chosen only as a convenient notation to illustrate the sound capability of the present invention. 
     Marking up a Document without Sound 
     FIGS. 3a-3g illustrate a scenario where one reviews and marks up a document using the present invention&#39;s application independent &#34;in-place&#34; annotation without sound. Referring to FIG. 3a, after a user (one who reviews the document) starts an application, he/she opens a document 30. In this instance, a word processor Ami Pro from Lotus is used to create document 30 for illustration. The present invention&#39;s application program is independent of the application used to create document 30. 
     While the cursor is at a location 32, if the reviewer invokes the annotation application program of the present invention, an annotation window 34 appears, as shown in FIG. 3b, with its upper left corner placed approximately at location 32 so that annotation window 34 can be placed over the portion of document 30 to be annotated. In this example, the annotation application of the present invention is invoked by clicking an icon 31 in FIG. 3a. Icon 31 runs an Ami Pro macro that invokes the annotation application. If an application has no such macro capability, it typically has a command option for invoking an annotation application program. Such a command option may be located in one of the menus such as &#34;File&#34; 33, &#34;Edit&#34; 35, etc. of FIG. 3a. In FIG. 3b, while annotation window 34 is displayed, annotation window 34 is active, and the window in which document 30 appears is temporarily inactive. Because annotation window 34 is transparent, the reviewer can see the portion of document 30 under annotation window 34 while he/she draws on annotation window 34. This gives the effect of marking directly on document 30, as shown in FIG. 3c. 
     Referring now to FIG. 3c, when the reviewer realizes that the term &#34;6-sided&#34; at a location 36 should be &#34;4-sided,&#34; he/she draws a circle 38 around the number &#34;6,&#34; draws an arrow 40 and writes &#34;4-sided&#34; on annotation window 34 over document 30 using a cursor control device such as a mouse or pen. In FIG. 3d, when the reviewer realizes that the number &#34;8&#34; should be &#34;10,&#34; he/she marks up the number &#34;8&#34; and writes the correction in a similar manner. Although the annotation object 50 including the circles, arrows, &#34;4-sided&#34; and &#34;10&#34; is created on annotation window 34, it appears to the reviewer that he/she is drawing directly on document 30 because annotation window 34 is transparent. In FIG. 3e, when the reviewer closes annotation window 34, annotation object 50 is inserted (or in effect, pasted) into document 30 using OLE, and document 30 becomes the active window again. 
     Now referring to FIG. 3f, as will be described more in detail later with reference to editing capabilities of the present invention, when the reviewer desires to make an additional note such as &#34;, oddly enough,&#34; the reviewer can invoke annotation window 34, stretch the size of annotation window 34 to include the area of interest, and add the notation &#34;, oddly enough&#34; in annotation window 34. 
     In FIG. 3g, when annotation window 34 is closed, annotation object 50 is embedded (or pasted) into document 30 using OLE. After closing document 30, if it is reopened, the reviewer can choose to display document 30 with annotation object 50 as shown in FIG. 3g or document 30 without annotation object 50. It should be noted that the object created in FIGS. 3c-3g has foreground only. The object has no background. 
     Marking up a Document with Sound 
     FIGS. 4a-4d illustrate a scenario where one uses the present invention to review and mark up a document using &#34;in-place&#34; annotation with sound. Referring to FIG. 4a, after opening a document 60 and invoking the annotation application of the present invention, the reviewer underlines a phrase 62 &#34;As you remember,&#34; as he/she speaks and records a message 64 &#34;re-phrase.&#34; As described before, a balloon is used to indicate what is being said, but is not drawn by the user. The balloon does not appear on the display. In FIG. 4b, the reviewer circles &#34;infomation&#34; and says, &#34;check spelling.&#34; 
     In FIG. 4c, when annotation window 66 is closed, underline 65 and circle 68 are inserted into document 60 using OLE. FIG. 4d illustrates what happens when the annotation is played. The drawing and the sound are played synchronously so that as one hears &#34;re-phrase,&#34; he/she sees underline 65 being drawn, and as one hears &#34;check spelling,&#34; he/she sees circle 68 being drawn. The synchronization of the sound and drawing is discussed in detail later with reference to FIG. 11a, 11b and 12. 
     Although the previous examples illustrate annotation done on documents created by a word processing program, it will be appreciated that the present invention&#39;s annotation application program can be used with any program having OLE capabilities. 
     Describing Items on a Display 
     FIG. 5 illustrates a scenario where the present invention is used to point to and describe various items shown on a display. After the user invokes the annotation application of the present invention, he/she can resize an annotation window 70 so that it covers the entire display area. As one circles an item (e.g., a circle 72, 74 or 76), he/she can explain the function of each item being circled. When one wants to explain the scrolling capabilities of application program Ami Pro, he/she can draw an arrow (e.g., arrow 78, 80, 82, 84 or 86) on annotation window 70 to describe each of these items. In this way, the present invention can be used to mark up the entire display. The present invention acts as a transparency on which one can write while he/she records messages. 
     Map with Explanation 
     FIGS. 6a-6c describe how the present invention can be used to provide a direction on a map. For example, Y needs a direction to get from HF Campus to JF Campus, so X prepares the following map with explanation. Only a simple example is shown here not to clutter the description of the present invention; however, it will be appreciated that as the map and the direction become more complex, the preset invention becomes more useful. 
     In FIG. 6a, as X draws an arrow 80, X speaks and records the message, &#34;Take Cornell West to Traffic Light.&#34; In FIG. 6b, as X draws another arrow 82, X speaks and records the message, &#34;Then North to JF Campus.&#34; In FIG. 6c, when X closes annotation window 84, the display shows the map with arrows 80 and 82. When X finishes making the direction on the map, X can send the map to Y electronically. When Y plays the map, Y hears the narration recorded by X and sees arrows 80 and 82 drawn on the map at the same time. Since Y hears the narration, he/she has a verbal description of the landmarks corresponding to the map. In addition, X now has a map with the arrows that X can carry with him/her when he/she travels from HF Campus to JF Campus. 
     Rough Draft Figures 
     FIGS. 7a-7d illustrate how rough draft figures can be generated conveniently and quickly using the present invention. This is an example where the present invention is used by itself (&#34;stand-alone&#34;) rather than using the present invention to create annotation for a document of another application. In this example, X wants to write a memo proposing a new family of network adapter products that insulate the system software from the networks. 
     In FIG. 7a, X starts the process by drawing a simple picture. As X draws the picture, he/she speaks and records the words indicated in balloons 90, 92 and 94. As described before, X does not draw or fill in the balloons. The balloons are simply shown to illustrate that those words are spoken by X as he/she draws the picture. In FIGS. 7b and 7c, X continues to add more pictures and record more words. FIG. 7d shows the finished picture. The drawing having recorded sound can be created in a short amount of time. In this example, it took X only thirty-five seconds to draw and record his/her voice. 
     Once X is finished with the drawing, X may send the drawing with the voice to his/her co-workers to make counter-proposals in a similar fashion without spending much time. They can continue to modify the drawing until they all agree on a design at which point they can make a final drawing using a more extensive drawing application package. 
     Tutorial Lecture 
     The present invention can also be used by an instructor for teaching students. This is another example of using the present invention as a &#34;stand-alone&#34; application. FIG. 8 illustrates how a mathematics teacher can record his/her class session for his/her students. As the teacher writes various mathematical equations, he/she speaks and records the words shown in balloons 100, 102 and 104. When a student plays the class session, he/she hears the words and sees the equations displayed synchronously as the teacher drew and recorded them. 
     MAKING OF THE PRESENT INVENTION 
     Creating An Object 
     In creating an object, whether it is an annotation object (e.g., object 50 in FIG. 3d, object 63 in FIG. 4b or object 83 in FIG. 6b) or a &#34;stand-alone&#34; object (e.g., object 93 in FIG. 7c or object 103 in FIG. 8), the present invention includes the following features. 
     First, in the present invention, either transparent or nontransparent drawings can be selected. When the present invention is used as an annotation application program (e.g., see FIGS. 3a-3g, 4a-4d, 5 or 6a-6c), transparent drawings are selected so that both the annotation window and the area under the annotation window are visible at the same time. The present invention&#39;s annotation window is in effect used as a transparency on which the user can make various marks over the desired area of the document under the annotation window. 
     There are two types of objects: those with a foreground only and those with both a foreground and a background. Some drawing objects, such as the freehand annotation object 50 in FIG. 3d, have foreground only. However, other drawing objects such as characters, dashed lines, or cross-hatched areas have both foreground and background. In creating transparent drawings, if the object 50 in FIG. 3d has no background, the background of the object does not need to be set be transparent before displaying the object. But if the object has a background, the background of the object must be set to be transparent before displaying the object to ensure that the drawing is transparent. When objects having both foreground and background are used in annotations, setting the background to be transparent before displaying the object assures that the area of the document under the background area of the objects remains visible. When the present invention has transparent drawings selected, the present invention selects a transparent background drawing mode for all the objects it draws. 
     In addition, to create transparent drawings, the background of the window must be transparent. The present invention draws its own background, if required, depending on whether transparent or non-transparent drawings are selected. 
     When the present invention is used as a &#34;stand-alone&#34; application (see, e.g., FIGS. 7a-7d or 8), the background of the present invention&#39;s window and objects is drawn non-transparent. 
     When the present invention is used as an annotation application program as in FIG. 4a-4d, the background of the present invention&#39;s window and objects is kept transparent. 
     Second, besides incorporating sound, the present invention includes freehand drawings as well as other drawing objects (e.g., text, lines, arcs, or polygons). However, by limiting the present invention to freehand drawings, the objects can be created, edited, and displayed very quickly. 
     Third, in the present invention, the drawings can be done using different colors. Because choosing a color can be inconvenient to the user, the present invention records the last color used and starts the drawing with that color. There are many ways to provide a menu for colors. Two examples are shown in FIGS. 9a and 9b. In FIG. 9a, the colors are provided in a pull-down menu 120. In FIG. 9b, the colors are shown in a color tool bar 122. In another embodiment, the user may be able to change the color by &#34;speaking&#34; to the computer. The color capability is beneficial in drawing overlapping lines or in adding a revised drawing over the original drawing. 
     Fourth, the present invention may include the capability of changing the line width or style (e.g., dotted, dashed, solid, arrowhead, etc.). Different line widths can be chosen from a pull-down menu or a line tool bar similar to those shown in FIGS. 9a and 9b. 
     Fifth, multiple objects may be created while the present invention is used as an annotation application. For example, in FIGS. 4a and 4b, while the annotation is done using one annotation window, the user may create other annotation windows for document 60. After closing annotation window 66, the user may place the mouse at another location in document 60 and invoke the present invention&#39;s annotation application program again to create a new object on another window. It will be appreciated that instead of creating multiple objects using multiple windows, one can also use one annotation window to annotate the entire document by resizing the annotation window as shown in FIG. 3f. 
     Finally, multiple objects can be created when the present invention is used as a &#34;stand-alone&#34; application. For example, while all the equations shown in FIG. 8 may be part of one object (that is, they are created in one window), each may be a separate object created in a separate window. 
     Editing Windows, Objects An d Sound 
     The present invention provides various editing capabilities for editing the present invention&#39;s window, its objects and recorded sound whether the present invention is used as an annotation application or &#34;stand-alone&#34; application. 
     With respect to windows, the present invention&#39;s window such as annotation window 34 in FIG. 3d can be resized as shown in FIG. 3f. In addition, the present invention&#39;s window can be moved by dragging the window. For example, in FIG. 3b, the user can point to a title segment 115 of annotation window 34 and drag annotation window 34 using a mouse. 
     In editing objects, the present invention can use any of the features described above with respect to creating an object as well as the following features that are used in editing objects and sounds: 
     First, drawings and sounds can be appended to the existing object data and recorded sound data, respectively. In FIG. 3f, the freehand drawing of an arrow and the hand written phrase &#34;, oddly enough&#34; are appended to the existing object data. If the user also speaks and records words while drawing the arrow and the hand written phrase &#34;, oddly enough,&#34; then the new drawing consisting of the arrow and the phrase is appended to the existing object data while the speech is appended to an existing recorded sound data. If there is no previously recorded sound data, then the speech will be recorded as a new sound data. 
     Second, the present invention supports &#34;delete&#34; functions. There may be at least three different types of &#34;delete&#34; functions: a clean slate, backspace and eraser. The clean slate is used to delete the entire object data and the recorded sound data in a single operation. Upon execution of the clean slate function, the user starts with a blank window having no sound recorded. 
     The backspace can be used to delete strokes (or fragments of strokes) backward from the last to the first. However, no sound is deleted. After executing the backspace operation, if the user plays the object and the sound, the present invention draws the original unedited drawing of the object with sound (if there was sound recorded) and deletes the strokes as the user did. 
     The eraser is used to wipe off any or all portions of the drawing of an object as if erasing a white-board with a white-board eraser. But no sound is deleted. After executing the eraser operation, if the user plays the object and the sound, the present invention draws the original unaltered drawing with sound (if there was sound recorded) and erases the portion of the drawing as the user did. 
     Playing Objects and Sound 
     The present invention includes various capabilities and characteristics of an OLE server supporting a container application. Because of the unique relationship between an OLE server and a container application as described in the background information documents Microsoft Windows User&#39;s Guide and Object Linking &amp; Embedding Version 1.0 Reference Guide, when the present invention, as an OLE server, supplies information or &#34;command verbs&#34; to the container application, the container application can display or &#34;play&#34; the information or incorporate the command verbs through OLE so that the user can invoke them from the container application. 
     When the present invention is used as an annotation application supporting a container application, the annotation of the present invention can be shown on a display in at least two ways. First, the annotation objects of the present invention can be shown on the display as a &#34;static image.&#34; The present invention which is an OLE server supplies the complete final drawing, such as the object (65 and 68) in FIG. 4c, for the container application to show on the display. 
     When a container application shows an annotation supplied by the present invention as a static image, it can treat the image as a stand-alone image or as a transparent overlay. When the container application treats the image as a stand-alone image, the container application rearranges its own display to make room for the stand-alone annotation image. On the other hand, when the container application treats the image as a transparent overlay as in FIG. 4c, it keeps its own display 60 the same as it was without any annotations. After drawing its own display 60, the container application draws the annotation object (65 and 68) on top of its own display. The present invention supplies the drawing objects with transparent background in its static image so that the container application&#39;s display 60 remains visible in the background. 
     Second, the annotation objects of the present invention can be replayed as a &#34;dynamic image&#34; synchronized with the recorded sound. The present invention can support a &#34;play&#34; verb so that the container application can replay the annotation object as a dynamic image. This &#34;play&#34; verb will be accessible from the container application. When the &#34;play&#34; verb is invoked, the present invention replays the recorded sound and draws the objects synchronized with the sound in the way they were drawn when the annotation was created. 
     When a container application replays an annotation object supplied by the present invention as a dynamic image, the container application may also show the annotation object as a static image. The present invention can replay the annotation objects of its dynamic image in at least three different ways. First, the present invention can simply re-draw the annotation objects over the annotation objects already shown on the container document. In this case, if the container application also shows the annotation&#39;s static image, the dynamic image may be difficult to distinguish from the static image. Second, the present invention can draw the annotation objects using a different contrasting color over the annotation objects already shown on the container document. Third, the present invention can erase the annotation objects shown on the document and then draw the annotation objects. 
     It will be appreciated that when a container application supports replaying an annotation supplied by the present invention as a dynamic image having sound, the container application can provide various forms of invoking the &#34;play&#34; verb including but not limited to: invoking the &#34;play&#34; verb when the user double-clicks a portion of the annotation object; invoking the &#34;play&#34; verb when the document is opened; or invoking the &#34;play&#34; verb when a pull-down menu command is invoked. The implementation of the &#34;play&#34; verb is provided by the present invention. Thus, when the container application invokes the &#34;play&#34; verb, the present invention plays the annotation including the objects and the sound. 
     When the present invention is used a stand-alone application (e.g., see FIGS. 7a-7d and 8), the objects of the stand-alone application can be displayed as static images or played as dynamic images synchronized with the recorded sound using methods similar to those described above with respect to an annotation application. The only difference is that the present invention rather than the container application displays the objects and provides a user interface to play the sound. 
     Showing an Object on a Transparent Window 
     To show or draw an object having foreground only and no background on a transparent window, the present invention uses the following sequence: After the features of a frame such as frame 110 in FIG. 3b are set, and the present invention&#39;s window is set to have a transparent background, the window with a transparent background such as window 34 in FIG. 3b is displayed. Once the window is shown, since there is no background, the foreground of the object can be drawn immediately on the window. 
     To show or draw an object having both foreground and background on a transparent window, the present invention uses a sequence similar to that of showing an object having foreground only, as described above. However, the major difference is that when the object has both foreground and background, the background of the object must be set to be transparent before showing the foreground so that when the foreground of the object is shown on the window, the object 146 is displayed as in FIG. 10a rather than FIG. 10b. 
     In FIG. 10a, an annotation window 148 is shown over a document 140. Curly lines 142 represent the text of document 140. Annotation window 148 is transparent so that the text 142 of underlying document 140 shows through annotation window 148. The background of annotation object 146 is also transparent so that annotation object 146 does not cover up the portions of the underlying text 142. However, in FIG. 10b, because the background of annotation object 146 is non-transparent, some portions of the underlying text 142 are hidden. 
     When non-transparent drawings are selected, the present invention sets the background of the objects to be drawn on the present invention&#39;s window to be an opaque white color and draws the entire background of the present invention&#39;s window with an opaque white color. 
     Re-Drawing Transparent Windows 
     The present invention&#39;s window may need to be re-drawn when either the present invention&#39;s window or another window is moved or resized or when the contents of an active window is modified. When the present invention&#39;s window is used with a transparent background such as annotation window 34 in FIG. 3c, to ensure that the present invention&#39;s window is re-drawn with a transparent background, the following sequence is used in the present invention: 
     Check whether the present invention&#39;s window is the active window. 
     Hide the present invention&#39;s window. 
     Yield processor 1002 in FIG. 2 to let other applications re-draw their windows and contents. In the preferred embodiment, this step is repeated ten times to ensure that all the windows except the present invention&#39;s window are updated before the present invention&#39;s window is re-drawn. In another embodiment, this step may be repeated less than or greater than ten times or may not be repeated. 
     Show the present invention&#39;s window and make it active or inactive depending on whether it was active or inactive prior to the re-drawing sequence. 
     It should be noted that the present invention&#39;s window is not re-drawn when the contents of an inactive window is modified. FIG. 13 shows a clock window 202 having a clock 208 and a present invention&#39;s window 204 having an object 206. Although the hands of clock 208 continuously move, thus modifying clock window 202, the present invention&#39;s window 204 is not re-drawn because clock window 202 is inactive. 
     Compressing and Synchronizing Data 
     The present invention detects the silent segments of the recorded sound stream data and deletes the silent portions from the recorded data. Upon replay of an object and its associated sound, any drawing done during the silent segments are played at the computer&#39;s full graphics drawing speed, only slowing down to real-time again when more sounds are encountered. Thus, the present invention is played &#34;fast while silent&#34; and slows to real-time when sounds are played. This saves the space required to store the recorded sound, and the user does not have to wait through the silent periods. 
     The present invention inserts sequence marks into the sound stream data being recorded and the cursor-movement-and-action data (or the draw data) so that the sound and draw data can be synchronized with each other when they are replayed. The draw data contains information of all the cursor movements and cursor actions including button-up and button-down events. 
     FIGS. 11a, 11b and 12 illustrate how the sound stream data is compressed while preserving the synchronization between the sound stream data and draw data when they are replayed. FIG. 11a shows the draw data. The time sequences are marked 1 through 10. The hatched areas indicate that some draw data are stored. Even when there is no draw data stored during certain time periods such as between time periods 6 and 7 and between time periods 8 and 9, the sequence marks are stored in the draw data. 
     FIG. 11b shows the sound stream data. Sounds are recorded between time periods 2 and 3 and between time periods 73/4 and 10 as shown by the wavy lines. Other parts of the sound stream data contain only silence and sequence marks. The sound stream data in FIG. 11b is compressed into the one shown in FIG. 12. To compress the sound stream data, the silent segments such as the blocks between time periods 1 and 2 and between time periods 3 and approximately 73/4 are deleted including the sequence marks from the sound stream data. Then the last deleted sequence mark is re-inserted into the sound stream data in place of the deleted sound segments, as shown in FIG. 12. This sound compressing mechanism eliminates the storage space required for the silent segments and the inconvenience of waiting through the silent segments of the recording when an object and its associated sound are played. 
     In operation, when the user plays an object and the sound, the present invention plays the sound stream data while examining it for sequence marks. Upon encountering one of the sequence marks, the present invention plays the draw data from where it was last played up to the sequence mark in the draw data corresponding to the one just found in the sound stream data. This allows the draw data to catch up in drawing even if some sequence marks are missing in the sound stream data and to be played &#34;fast while silent.&#34; 
     This operation is illustrated referring to FIGS. 11a and 12. When the user plays the object having the draw data shown in FIG. 11a and the sound stream data shown in FIG. 12, the present invention plays the sound stream data while examining it for sequence marks. In FIG. 12, the first sequence mark 2 is encountered immediately. The present invention then plays the draw data (section A1) up to sequence mark 2 at the full available drawing speed. Upon completion of drawing the draw data up to sequence mark 2, the present invention resumes playing the sound stream data, while examining it for sequence marks. After having played the sound data in section B2, the present invention encounters sequence mark 3 in the sound stream data. The present invention then plays the draw data (section A2) from where it left off up to the matching sequence mark 3 at the full available drawing speed. Upon completion of drawing the data up to sequence mark 3, the present invention resumes playing the sound stream data, while examining it for sequence marks. The next sequence mark 7 in FIG. 12 is encountered immediately. The present invention then plays the draw data (sections A3, A4, and A5), shown in FIG. 11a, from where it left off up to the matching sequence mark 7 at the full available drawing speed. 
     The present invention continues this process through the remainder of the sound data (sections B4, B5, and B6). Whenever it encounters a sequence mark in the sound stream data (e.g., 8, 9, and 10) it stops playing the sound data, plays the draw data from where it left off up to the matching sequence mark in the draw data, and resumes playing the sound data. Thus the drawings become synchronized with the real-time sound data whenever a sequence mark is encountered in the sound stream data. The present invention uses a short time interval between sequence marks so that the drawing proceeds smoothly. 
     When there is a long silent interval in the original recording, many sequence marks are deleted from the sound stream data when the present invention compresses the sound data (e.g., sequence marks 4, 5, and 6 in FIG. 11b). When the present invention replays the compressed sound data that has had a long silent interval removed, it replays a long sequence of draw data at the full available drawing speed (e.g., the draw data between sequence marks 3, 4, 5, 6, and 7 in FIG. 1a). Thus the present invention replays drawings &#34;fast while silent.&#34; 
     While the present invention has been particularly described with reference to the various figures, it should be understood that the figures are for illustration only and should not be taken as limiting the scope of the invention. Many changes and modifications may be made to the invention, by one having ordinary skill in the art, without departing from the spirit and scope of the invention.