Thursday, March 24, 2005

Desktop Alert

I was quite bored last night looking at the messages receiver implemented in Q that I decided to do something about it.

Having the exact-moment experience, I really liked the way Outlook (2003) displays alerts once new email is received using non-distracting notification window near the system tray. There is also other bunch of apps showing the similar functionality (IMs, GMail alert, etc) so I thought of doing something similar to that.

The result was a plain, borderless form that mimics animation using combination of Timers and Opacity property, auto-hides after the specific number of seconds. The window is not sizable at run-time and since the message body could be longer than the space provided, I left the "clickable" label that will call good, old MessageBox.Show() method - displaying whole message body.

Even though the Alert window adds a bit of spice to the boring "battleship gray" structure, messaging in Q will have to be enriched with other functionalities in the future. For the time being, I just keep writing notes about it.