Readme file for Text2 (text2.pas) ************************************ Text2 is a development of Text1 and allows the user to begin to control the program. Clicking the left mouse button in the Text2 window causes the execution of the TDemoWin.WMLButtonDown procedure. This code clears the displayed window (CreateRectRgnIndirect & PaintRgn) before changing the type of font (Family := (Family + 1) mod 4;) and calling ShowFont to display the new font in the window. ShowFont is a new procedure, introduced to allow repeat drawings to the same window with differing parameters (in this case, fonts). Using Paint, as in text1, in actually inefficient. Future programs should all define a specific procedure, like ShowFont or DrawNow, which control all the drawing to the window. The ShowFont procedure is available to other parts of the program and itself has access to data hidden in the rest of the program.