Draw file Displayer

by David Spencer


This is the example program from the Desktop C article in this month's issue of RISC User. It illustrates the techniques involved in displaying a Draw file in a window on the Desktop. The program automatically loads a Draw file called Drawing from the !DrawDisp directory. To display your own Draw file, change the Draw file's name to Drawing and copy it into the !DrawDisp directory.

IN USE
To install DrawDisp, either click on its icon in the RISC User Menu System, or double-click on its icon in the Filer window. As the application is stored in a compressed file on this disc, a Filer window will now open containing the actual application. Double-click on the DrawDisp icon in this window to run the program, and click Select on its icon bar icon to open the window containing the Draw file. Clicking Menu over this window opens a menu containing a Zoom option, which allows you to increase or decrease the magnification of the Draw file.

ABOUT THE SOURCE CODE
The source code is contained within the file 'main' in the 'c' subdirectory. For information on the various functions in the source code, refer to the Desktop C article in this month's issue of RISC User.


 Copyright RISC User 1994
