home *** CD-ROM | disk | FTP | other *** search
-
- Sample Desk Accessory by Roy A. Leban
-
- Sample is a complete sample Desk Accessory written in Manx Aztec C.
- It is a simple DA which implements all the parts of a Desk Accessory.
- Basically, it does nothing, but it does it very well. It makes use
- of a special re-entrant DA.h header file. Basically, it is the
- equivalent of MacApp for Desk Accessories. Among other things,
- It includes support for all events, Horizontal and Vertical Scroll
- Bars and the Grow Box. More controls can be added fairly easily.
- The entire DA fits in approximately 5K. I spent a fair amount
- of time refining just what it should look like and I am distributing
- it free to share this knowledge with others. However, it is not
- Public Domain. I hold the copyright and I expect people to abide
- by it. I am allowing anyone to use this DA free of charge provided
- they follow a few simple rules:
-
- 1) If you modify the Sample DA and distribute it, you must
- include comments to indicate which changes are yours.
- 2) You may not sell the Sample source under any conditions
- without my permission.
- 3) You may modify this program and incorporate it into any
- DA you want, which you may sell if you wish. If you do so,
- you must include a credit notice which says:
- "Portions of this program Copyright 1985 by Roy A. Leban"
- You must include this notice whether or not you sell the DA.
- 4) If you distribute the source to your DA in any fashion, you
- must include the entire copyright notices and associated
- comments. You may, of course, include any copyright of your
- own, with any appropriate notices.
- 5) You may not publish this DA in any magazine, electronic, printed
- or otherwise, without my permission. You may, however, post this
- on any public or private bulletin boards or conferencing systems.
- If you do so, you must include the entire package as described
- below.
-
- If you simply look at my code to see how I do things and then do
- it your own way, you don't have to follow the rules above, even
- if your code is similar to mine (but I expect you to be honest!).
- If you use my ideas without using my code, giving credit where
- credit is due is still appreciated. In my case, thanks go to
- Ludis Langens for his suggestions. The code in QuitWindow is
- modified from an Info-Mac message by Mike Schuster. Thanks to
- Jeff Miller for finding the "last" bug.
-
- This package consists of 7 files totalling approximately 54K.
- Please don't distribute some of them without the others. If
- you can, it's preferable to distribute them in a PackIt file.
- If you make modifications and wish to pass them along, it would
- be nice if you passed along the originals too. The files are:
-
- Sample.info This file
- Sample Font/DA Mover file for Sample DA
- Sample.make Makefile for Sample DA (type: make -f sample.make)
- Sample.c C Source to Sample DA
- Sample.r RGen/RMaker file
- DA.h Special DA Header file
- Sample2 Font/DA Mover file which illustrates a few special features
-
- The Sample2 DA is provided so that you can see how Scroll Bar
- and Grow Box modification works without having to write the
- code yourself.
-
- If you have a printed copy of this program and would like a copy
- on disk, I'll mail you one if you send me $10 or $5 and a disk.
- This cost is to simply make it worth the bother for me to send
- it to you. I'd prefer it if you got a copy from a Mac bulletin
- board or conferencing system. As I said, the program is free.
- If you like it and would like to contribute some money, please
- donate it to your favorite charity. Better yet, distribute some
- of your own software in the same manner.
-
- If you have questions or comments, you can call or write me at:
-
- Roy A. Leban
- 314 Packard, #3
- Ann Arbor, Michigan 48104
- (313)761-5869
- Netmail: roy%farg@umich[.csnet]
-
- I'll try to help if I can, but I won't write your DA's for you.
- Have fun.
-
- -Roy. November, 1985
-