ANNOTATE: Adds Handwriting to a Text File
ANNOTATE adds handwriting information to a text file. This sample can serve as a starting point for writing pen-centric annotation applications.
There are many issues involved in writing an application that offers full-scale annotations: movement, saving ink to a file, delayed recognition, and use of gestures. To attach ink to a specified position of the text file involves scrolling and repainting the ink in the appropriate position. ANNOTATE demonstrates a scrolling algorithm that scrolls the ink with the text file appropriately. Other scrolling algorithms are also possible. The RedisplayPenData function redisplays the ink, and the DuplicatePenData function saves ink over the life of the application.
ANNOTATE also demonstrates how to change ink color and width dynamically.
ANNOTATE was built and tested under Microsoft(R) Windows(TM) version 3.1. The program requires PENWIN.DLL, which can be found in both Microsoft Windows for Pen Computing and the Microsoft Windows version 3.1 Software Development Kit (SDK).
{ewc navigate.dll, ewbutton, /Bcodeview /T"Click to open or copy files in the annotate project." /C"samples}