Click here to Skip to main content
Click here to Skip to main content

Tray Calendar

By , 2 Aug 2003
 

Sample Image - traycalendar.gif

Introduction

Tray Calendar is a freeware utility that I wrote after being amazed that

  1. Microsoft did not bother to offer us a calender in the tray, and
  2. People were charging good money for tiny little tray apps.

The idea is simple: Put the day of the month next to the clock in the system tray. It tells you todays date, and will update the number displayed when the date changes. 20 seconds after it starts it will reshuffle itself so that it is the right-most icon in the tray. This is useful if you put it in the "Startup" folder (so it starts automatically) becuase during startup other icons such as virus checkers and such may get between the calender and the clock.

The only options are that you can disable date checking, disable auto-shuffle, and you can change the auto-shuffle time. Right click on the date icon for the options dialog.

The class is based on my CSystemTray class, and serves as a fairly quick and dirty example of how to use it.

Tray Calendar now works in CE 2.0-2.11 and VC++ .NET

History

  • 6 Apr 2002 - app now checks the date when the computer comes out of hibernation or suspension (Thanks to Derek Waters)
  • 3 Aug 2003 - Updated SystemTray class now recreates thetray icon after Explorer crashes and restarts.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Chris Maunder
Founder CodeProject
Canada Canada
Member
Chris is the Co-founder, Administrator, Architect, Chief Editor and Shameless Hack who wrote and runs The Code Project. He's been programming since 1988 while pretending to be, in various guises, an astrophysicist, mathematician, physicist, hydrologist, geomorphologist, defence intelligence researcher and then, when all that got a bit rough on the nerves, a web developer. He is a Microsoft Visual C++ MVP both globally and for Canada locally.
 
His programming experience includes C/C++, C#, SQL, MFC, ASP, ASP.NET, and far, far too much FORTRAN. He has worked on PocketPCs, AIX mainframes, Sun workstations, and a CRAY YMP C90 behemoth but finds notebooks take up less desk space.
 
He dodges, he weaves, and he never gets enough sleep. He is kind to small animals.
 
Chris was born and bred in Australia but splits his time between Toronto and Melbourne, depending on the weather. For relaxation he is into road cycling, snowboarding, rock climbing, and storm chasing.

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
GeneralExcuse~ Why can't I download the source code ? Thanks~memberanmytry5 Jan '08 - 15:32 
GeneralMake it use 'long date' format as defined in Regional and Language Options [modified]memberahtiger22 Nov '07 - 23:58 
GeneralHelp RequiredmemberSreekanth Muralidharan20 Dec '05 - 1:49 
GeneralRe: Help Requiredmembermike.sun11 Oct '06 - 23:12 
Hello,
 
I am mike, I met the same problem.
I wonder if you have the solution for this issue.
If so, could you kindly forward the information? Many thanks.
 
My E-mail is: mike.sun@quantatw.com
Generalthankx for bug fixmembervikas amin24 Aug '05 - 4:41 
GeneralLocal days and months names...memberTomas Jakl8 Jul '05 - 4:50 
Generalchange version numbermembercebusong16 Jul '04 - 8:49 
QuestionHo to activate the application from the Explirer?sussPlamen Petrov27 May '04 - 3:45 
Answercheck out YahooPOPs source codemembercebusong16 Jul '04 - 8:06 
GeneralTray Calendar doesn't updatememberKimN26 Apr '04 - 4:38 
GeneralRe: Tray Calendar doesn't updatemembercebusong16 Jul '04 - 8:11 
GeneralShuffle works in reversememberKimN23 Apr '04 - 5:35 
GeneralCompilation Fails with Visual C++ v6.0memberStevenYoungs4 Aug '03 - 2:17 
GeneralThanks!!memberWREY4 Aug '03 - 19:30 
QuestionWindows CE 2.11 also?memberwrenhal13 Jul '03 - 3:50 
GeneralNO problem with Tray Calendar download...memberJohn H. Doyle2 Mar '03 - 5:09 
GeneralTray Calendar Download ProblemmemberJohn H. Doyle2 Mar '03 - 5:06 
QuestionHow to acees the PRINTER via my eVC++ applicationmemberAKSIVAKUMAR26 Feb '03 - 21:58 
QuestionHow to send FAX via my eVC++ applicationmemberAKSIVAKUMAR26 Feb '03 - 21:42 
GeneralAdding to startupmemberJack_pt22 Feb '03 - 3:43 
GeneralRe: Adding to startupmemberAKSIVAKUMAR26 Feb '03 - 21:37 
GeneralMetric Time in traymemberrehgf23 Jul '02 - 16:53 
GeneralRe: Metric Time in traymemberirekz@yahoo.com29 Jan '03 - 23:13 
GeneralXpmemberswinefeaster14 Apr '02 - 20:10 
GeneralRe: XpadminChris Maunder14 Apr '02 - 20:40 
GeneralRe: XpmemberAnonymous4 Jun '02 - 23:59 
GeneralRe: XpmemberBret Faller23 Aug '02 - 11:54 
GeneralRe: XpadminChris Maunder23 Aug '02 - 13:49 
GeneralRe: Xpmembermarin.mamic@netlab.hr9 Jul '03 - 2:12 
GeneralRe: XpadminChris Maunder9 Jul '03 - 5:13 
GeneralSerious bug u should fix....memberAnonymous12 Mar '02 - 10:32 
GeneralRe: Serious bug u should fix....memberkmaz25 May '03 - 5:45 
GeneralDate goes to 2000 after bootingmemberdweeber12 Sep '01 - 17:37 
GeneralRe: Date goes to 2000 after bootingmemberChris Maunder12 Sep '01 - 18:01 
GeneralRe: Date goes to 2000 after bootingmemberAnonymous12 Sep '01 - 19:03 
GeneralRe: Date goes to 2000 after bootingmemberJeremy Falcon30 Sep '02 - 8:35 
QuestionWhat does "Can't build MFC OLE projects using static MFC libraries" mean?memberCarson Wilson28 Jun '01 - 7:40 
AnswerRe: What doesmemberdigiedit28 Jun '01 - 9:03 
GeneralNow I don't have a WinMain!memberCarson Wilson28 Jun '01 - 10:03 
GeneralRe: Now I don't have a WinMain!memberCarson Wilson28 Jun '01 - 11:00 
GeneralRe: Now I don't have a WinMain!memberjp2code7 Mar '07 - 4:28 
AnswerRe: What doesmemberCarson Wilson28 Jun '01 - 11:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Permalink | Advertise | Privacy | Mobile
Web02 | 2.6.130516.1 | Last Updated 3 Aug 2003
Article Copyright 2000 by Chris Maunder
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid