home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
mswindws
/
digiclok.arc
/
DIGICLOK.DOC
next >
Wrap
Text File
|
1987-04-29
|
3KB
|
55 lines
DigiClok -- Microsoft Windows Digital Clock -- Version 2.00 04/29/87
Copyright (c) 1987 -- Kim Levitt
This little program is something I thought of the first time
I saw the Windows clock running as an icon. I have trouble with analog,
frankly (what time is it when Mickey's little hand is on...) and besides,
it's hard to read those itty bitty hands... Anyway, as you can guess from
the title, this program displays a "digital clock" as an icon.
DigiClok is based on the "FreeMem" program by Charles Petzold.
It is similar in that it doesn't use a resource file and it uses a timer
interrupt. I added a couple of features, however, that are not in the
original FreeMem but were mentioned in the article in Microsoft Systems
Journal that described FreeMem. It shows the icon on the far right hand
side of the icon area, and the icon will "refuse" to open as a window.
To close the icon, select it (click on it with the mouse or Alt-Tab until
it's highlighted) and press Alt-Spacebar and then Alt-C (and release).
DigiClok uses about 10k of memory and requires the "HELVA.FON" font
for CGA systems or the "HELVC.FON" font for EGA systems. (Both of these
are standard fonts distributed with Windows.) The font(s) should be loaded on
the system in order for DigiClok to work correctly. It demonstrates how to use
an alternate font. I tried several different ones, and finally settled on this
variable width "swiss family" font (swear to God). The font is sized according
to the system metrics information so it looks pretty good on both EGA and
better systems as well as on CGA systems. I also elected to use a non-military
time format (AM/PM), but it could be easily modified to use a military clock
by just removing some source code and recompiling it. The Microsoft Windows
Software Development Kit (v 1.03-up) and Microsoft C Compiler (v 4.00-up) is
required to compile it.
This program may be distributed without charge provided no fee
is charged for it and the program along with this doc file and the source
code is distributed along with it. (Preferably in the .ARC file in which
it was released.) Anyone desiring to use DigiClok or any of it's code
for a commercial product should make arrangements with the author first.
If you find DigiClok or the source code tricks it uses useful and
would like to make a donation to me to encourage future "shareware" for
Microsoft Windows, please send a check or money order made payable to
"Micro Bulletin Board Systems" and send it to:
Micro Bulletin Board Systems
8033 Sunset Blvd, Suite 975
Los Angeles, CA 90046
Thank you very much. Hope you enjoy DigiClok.
-- Kim Levitt (aka Windex Kid)
GEnie address: KIM-LEVITT
MBBS HQ PDSE (213) 653-6398
(300/1200/2400 baud, 24 hrs)
04/29/87