Click here to Skip to main content
15,879,535 members
Articles / Mobile Apps / Windows Mobile
Article

Tray Calendar

Rate me:
Please Sign up or sign in to vote.
4.81/5 (25 votes)
2 Aug 2003CPOL 301.8K   7.4K   91   42
A simple application that places a date in the system tray

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)


Written By
Founder CodeProject
Canada Canada
Chris Maunder is the co-founder of CodeProject and ContentLab.com, and has been a prominent figure in the software development community for nearly 30 years. Hailing from Australia, Chris has a background in Mathematics, Astrophysics, Environmental Engineering and Defence Research. His programming endeavours span everything from FORTRAN on Super Computers, C++/MFC on Windows, through to to high-load .NET web applications and Python AI applications on everything from macOS to a Raspberry Pi. Chris is a full-stack developer who is as comfortable with SQL as he is with CSS.

In the late 1990s, he and his business partner David Cunningham recognized the need for a platform that would facilitate knowledge-sharing among developers, leading to the establishment of CodeProject.com in 1999. Chris's expertise in programming and his passion for fostering a collaborative environment have played a pivotal role in the success of CodeProject.com. Over the years, the website has grown into a vibrant community where programmers worldwide can connect, exchange ideas, and find solutions to coding challenges. Chris is a prolific contributor to the developer community through his articles and tutorials, and his latest passion project, CodeProject.AI.

In addition to his work with CodeProject.com, Chris co-founded ContentLab and DeveloperMedia, two projects focussed on helping companies make their Software Projects a success. Chris's roles included Product Development, Content Creation, Client Satisfaction and Systems Automation.

Comments and Discussions

 
GeneralExcuse~ Why can't I download the source code ? Thanks~ Pin
anmytry5-Jan-08 15:32
anmytry5-Jan-08 15:32 
GeneralMake it use 'long date' format as defined in Regional and Language Options [modified] Pin
ahtiger22-Nov-07 23:58
ahtiger22-Nov-07 23:58 
GeneralHelp Required Pin
Sreekanth Muralidharan20-Dec-05 1:49
Sreekanth Muralidharan20-Dec-05 1:49 
GeneralRe: Help Required Pin
mike.sun11-Oct-06 23:12
mike.sun11-Oct-06 23:12 
Generalthankx for bug fix Pin
vikas amin24-Aug-05 4:41
vikas amin24-Aug-05 4:41 
GeneralLocal days and months names... Pin
Tomas Jakl8-Jul-05 4:50
Tomas Jakl8-Jul-05 4:50 
Generalchange version number Pin
cebusong16-Jul-04 8:49
cebusong16-Jul-04 8:49 
QuestionHo to activate the application from the Explirer? Pin
Plamen Petrov27-May-04 3:45
professionalPlamen Petrov27-May-04 3:45 
Answercheck out YahooPOPs source code Pin
cebusong16-Jul-04 8:06
cebusong16-Jul-04 8:06 
GeneralTray Calendar doesn't update Pin
KimN26-Apr-04 4:38
KimN26-Apr-04 4:38 
GeneralRe: Tray Calendar doesn't update Pin
cebusong16-Jul-04 8:11
cebusong16-Jul-04 8:11 
GeneralShuffle works in reverse Pin
KimN23-Apr-04 5:35
KimN23-Apr-04 5:35 
GeneralCompilation Fails with Visual C++ v6.0 Pin
StevenYoungs4-Aug-03 2:17
StevenYoungs4-Aug-03 2:17 
GeneralThanks!! Pin
WREY4-Aug-03 19:30
WREY4-Aug-03 19:30 
QuestionWindows CE 2.11 also? Pin
wrenhal13-Jul-03 3:50
wrenhal13-Jul-03 3:50 
GeneralNO problem with Tray Calendar download... Pin
John H. Doyle2-Mar-03 5:09
John H. Doyle2-Mar-03 5:09 
GeneralTray Calendar Download Problem Pin
John H. Doyle2-Mar-03 5:06
John H. Doyle2-Mar-03 5:06 
QuestionHow to acees the PRINTER via my eVC++ application Pin
AKSIVAKUMAR26-Feb-03 21:58
AKSIVAKUMAR26-Feb-03 21:58 
QuestionHow to send FAX via my eVC++ application Pin
AKSIVAKUMAR26-Feb-03 21:42
AKSIVAKUMAR26-Feb-03 21:42 
GeneralAdding to startup Pin
Jack_pt22-Feb-03 3:43
Jack_pt22-Feb-03 3:43 
GeneralRe: Adding to startup Pin
AKSIVAKUMAR26-Feb-03 21:37
AKSIVAKUMAR26-Feb-03 21:37 
Hi Chris,

When I build for Pocket PC it seems not working properly.
But the icon will sit on the hadn held PC system tray.But i am not able to enable/disable menus.
Please guide me.

Thanks
AKS



GeneralMetric Time in tray Pin
23-Jul-02 16:53
suss23-Jul-02 16:53 
GeneralRe: Metric Time in tray Pin
Member 16157229-Jan-03 23:13
Member 16157229-Jan-03 23:13 
GeneralXp Pin
Swinefeaster14-Apr-02 20:10
Swinefeaster14-Apr-02 20:10 
GeneralRe: Xp Pin
Chris Maunder14-Apr-02 20:40
cofounderChris Maunder14-Apr-02 20:40 

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

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.