12-Aug-84 16:19:21-PDT,48036;000000000001
Return-Path: <MIKES@CIT-20.ARPA>
Received: from CIT-20.ARPA.ARPA (CIT-20.ARPA.#Internet) by SUMEX-AIM.ARPA with TCP; Sun 12 Aug 84 16:18:06-PDT
Date: 12 Aug 1984 1616-PDT
Subject: A Calendar/Note Pad desk accessory
From: Mike Schuster <MIKES@CIT-20.ARPA.ARPA>
To: info-mac@SUMEX-AIM.ARPA.ARPA


The desk accessory "Calendar" draws a monthly calendar above a note
pad text region containing a daily agenda.  Agendas can be edited with
the standard Cut, Copy, Paste, Clear, and Undo commands.  Calendar
uses the standard desktop clipboard, so you can easily transfer text
between other applications and desk accessories.  Agendas for
different dates can be viewed by clicking on the various parts of the
calendar.  Click on Sun, Mon, ..., or Sat to see the agenda for
another day of the week.  Click on 1, 2, ..., or 31 to see the agenda
for another day of the month.  Click on Jan, Feb, ..., or Dec to see
the calendar for another month.  Click on 83 or 85 to see the calendar
for last year or next year.  Look closely and you will see how to get
other years.  Finally, click on the top region containing the date and
time to see today's agenda.

Calendar saves each day's agenda as a purgeable resource of type
"TEXT" named "month/day/year" with some random id in a resource file
called "Calendar File".  I keep "Calendar File" in "System Folder"
along with "Note Pad File" and "Clipboard File".  Calendar requires
about 20K bytes, and hence it won't work under some applications,
notably MacPaint and MacTerminal.

Calendar is compiled with Bill Croft's SUMACC as a DRVR resource in a
desk accessory launcher/installer application called "Desk".  Calendar
can be used by launching "Desk" and pulling down the Apple menu or by
first copying it from Desk into your system resource file using either
"Resource Mover" or Desk's "Install" command.  I assume that your
version of "Rmaker" implements resource names as well as DRVR
resources.  Before compiling, check the path names defined in
"Makefile".  They will have to be changed to match your environment.

The file "device.h" contains some useful definitions for io drivers
and desk accessories.  "Crtcal.s" is a slightly modified version of
SUMACC's driver/accessory self-relocator "crtdrvr.s".

Mike Schuster (mikes@cit-20, mikes@cit-vax)

