home *** CD-ROM | disk | FTP | other *** search
- MyClock
- by
- Michael Sinz
-
- Copyright (c) 1990 by MKSoft Development
-
-
- Yes, this is yet another clock program, but the idea behind this one
- is that the clock looks like an icon on the screen. In fact, when
- AmigaOS 2.0 is available, I will try to make it into an AppIcon.
-
- Another nice thing is that it is very small and the core clock routine
- is 100% re-entrant so that anyone needing more than one clock could
- bring up multiple tasks running the DoClock() routine. Since DoClock()
- does not call any DOS related functions, it is safe to run as a TASK.
-
- You may ask: "Why did you do this?"
-
- Well, I had been up all night working on something else and just had to
- blow off some steam. For some strange reason, I had the idea of doing
- a clock with hands. In a few minutes I had a version that worked like
- I wanted in the screen where I wanted. A few days later, some people
- asked if they could have the clock. However, it was not set up for
- their systems so... Well, I added the command line stuff and then
- the detatch. (With Detatch, you do not get the command line help...)
-
- Anyway, here it is, in Lattice C 5.05.
-
- ************************************************************************
-
- Reading legal mush can turn your brain into guacamole!
-
- So here is some of that legal mush:
-
- Permission is hereby granted to distribute this program's source,
- executable, and documentation for non-commercial purposes, so long as
- the copyright notices are not removed from the sources, executable or
- documentation. This program may not be distributed for a profit
- without the express written consent of the author Michael Sinz.
-
- This program is not in the public domain.
-
- Fred Fish is expressly granted permission to distribute this program's
- source and executable as part of the "Fred Fish freely redistributable
- Amiga software library."
-
- Permission is expressly granted for this program and it's source to be
- distributed as part of the Amicus Amiga software disks, and the First
- Amiga User Group's Hot Mix disks.
-
- Permission is granted to all Amiga programmers to use any or all parts
- of this code in other Amiga software. Use in software other than on
- Amiga systems is expressly forbidden.
-
- ************************************************************************
-
- ------------------------------------------------------------------------
-
- User's Guide
-
- Usage: MyClock [LEFT x] [TOP y] [WIDTH x] [HEIGHT y]
- [FACE c] [HANDS c] [DRAG|NODRAG]
-
- LEFT - Left edge of the clock window
- TOP - Top edge of the clock window
- WIDTH - Width of the clock window
- HEIGHT - Height of the clock window
- FACE - Clock Face pen number
- HANDS - Clock Hands pen number
- DRAG - Let the clock be draggable.
- NODRAG - Do not let the clock be dragged.
-
- Same for MyClock_Back only there is no command-line help. However, it
- detatches from the CLI.
-
- MiniClock is the clock (slightly larger than at first) that does only
- what I want. No command-line or handling of different screens. Just
- what I wanted.
-
- ------------------------------------------------------------------------
-
- Compiling Guide
-
- The MakeFile given should compile and link the program with Lattice
- Amiga-C V5.05 or so.
-
- Note that on the DETATCH (MyClock_Back) link, you will get two errors.
- They are not of my doing. (Honest) They do not cause any problems.
- (In other words, just ignore them.)
-