65.9K
CodeProject is changing. Read more.
Home

Speaking Alarm Clock

starIconstarIconstarIcon
emptyStarIcon
starIcon
emptyStarIcon

3.61/5 (11 votes)

Nov 12, 2001

1 min read

viewsIcon

136508

downloadIcon

5841

Unique alarm application that works.

Introduction

Alarm application is a fully featured computerized alarm clock. It has unique interface and is stylish. It is based on my first program that I created in 1984 when I had the great Sinclair Spectrum 48K. That alarm clock was noisy when it was not in action :-). This one is hardly usable as a regular alarm clock. That is because of the noisy fan in the computer, I will never get used to sleep with the computer on ;-). The digits are created from a bitmap taken by a digital camera (the original bitmap from it was quite dirty (because of the JPEG lossy compression)).

This application is not written for any reuse in mind.

It seems that the alarm letters are not clear on some monitors :-(

Features

  1. Alarm is capable of keeping people awake :-).
  2. Digits interface is processed from digital image of electronic alarm clock (my stereo clock).
  3. Unique Interface (UI) (region adjusted with SetWindowRgn).
  4. Snap to invisible grid (when the window is moved).
  5. Applicable interactive option dialog.
  6. Speak clock with regular intervals (Icelandic) (class CSpeakNumber decodes all whole digit numbers).
  7. Filtered "edit" entry for clock "__:__".

Snapshots

There is just one menu (popup menu) that pops up when you use right mouse click or hit the menu key on the keyboard.

Options are few ...

Setting time dialog uses filtered edit control.

Note:

The code is not very well commented. CmEdit class is borrowed somewhere from, I don't know the author but he has the honor of that class. This is my first article at CodeProject ...

Send mail to adal@itn.is with questions or comments about this example.