RichardLee
Member
- Joined
- Dec 29, 2008
- Messages
- 7
- Programming Experience
- 5-10
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?
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?