View Single Post
  #1 (permalink)  
Old 07-03-2009, 11:48 AM
RichardLee RichardLee is offline
VB.NET Forum Newbie
.NET Framework: .NET 3.0 (VS 2005/2008)
 
Join Date: Dec 2008
Posts: 7
Reputation: 0
RichardLee is on a distinguished programming path ahead
Default How can I display text in the system tray?

I have looked on the net for demos of how to display a text message in the system tray, but all I can find are examples which say you need to use trayicons. Where you render your string into a bitmap, and then point the trayicon at the bitmap to display it.

Unfortunately this is no good for what I want to do, the trayicon is limited to only 16x16 pixels, and I want to display a longer message, which will just not fit. I can't resize the size of the icon, and if I make the source bitmap larger, it just gets scaled to fit within the 16x16 space (crushing it together into an awful mess)

So I tried using an array of trayicons and split the bitmap between them, but this also fails, because windows inserts about 3-4 pixels of padding between each tray icon.

So at the moment I am all out of ideas, but I know this is possible because I have seen other applications which can render text of any length into the system tray. Take tClock for instance.



Anyone got any ideas on how I should proceed?
Reply With Quote