Board index » cppbuilder » TrayIcon: Displaying text instead of a icon

TrayIcon: Displaying text instead of a icon


2004-01-19 03:58:55 AM
cppbuilder24
Hello,
whats the best way displaying text instead of a icon in
the traybar? I only want to display numbers, not a long text.
It would be great if somebody knows a example for this.
Bye,
Sebastian
 
 

Re:TrayIcon: Displaying text instead of a icon

"Sebastian Witt" < XXXX@XXXXX.COM >wrote in message
Quote
Hello,

whats the best way displaying text instead of a icon in
the traybar? I only want to display numbers, not a long text.

It would be great if somebody knows a example for this.

Bye,
Sebastian

I think you can only display icons in the tray bar. Depends on your range
of numbers you could create these icons in advance and then display them
when need be. Other alternative is to create the icons on the fly. If you
have large numbers its going to be tough to squeeze them into icon so that
they are readable.
 

Re:TrayIcon: Displaying text instead of a icon

"Sebastian Witt" < XXXX@XXXXX.COM >wrote in message
Quote
whats the best way displaying text instead
of a icon in the traybar?
The system tray only knows about icons, nothing else. What you ask for is
not natively doable, unless you dynamically create icons when needed to
display the desired numbers. The only way to display anything else beyond
that is to subclass the system tray directly, resize it, paint it manually,
etc. If you look around for a third-party program called TClockEx, it does
exactly that.
Gambit
 

{smallsort}

Re:TrayIcon: Displaying text instead of a icon

Remy Lebeau (TeamB) wrote:
Quote
The system tray only knows about icons, nothing else. What you ask for is
not natively doable, unless you dynamically create icons when needed to
display the desired numbers. The only way to display anything else beyond
that is to subclass the system tray directly, resize it, paint it manually,
etc. If you look around for a third-party program called TClockEx, it does
exactly that.


Gambit
Thanks,
Sebastian