Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extra long systray icon

Status
Not open for further replies.

northrd

Programmer
May 18, 2003
74
AU
I've seen multiple icons with scolling text, I've seen single icons with illegible text but how, oh how, do I create an icon (or other) that displays legible text on the the systray of 6 characters in length?
 
Ok
So how do you get things like the clock on the systray? What trickery is behind that???

One thought that I had was to have 2 icons side by side and overlay a form with my text on it. Any ideas?

Thanks mate
 
The clock is part of the operating system, there's a special setting to display it in the properties of the "TaskBar And Start Menu".

I hope you remember to provide an easy way for the user to not have your icons display in the systray if they so desire - especially if you plan to use double the normal space. There's nothing more annoying to me than a program that puts itself in the systray and doesn't have a "Hide" option in it's shortcut menu.

 
hello northrd ,
can u please gimme a code on how to display the icon of my vb application in the systray?
 
>So how do you get things like the clock on the systray?

It has it's own window, completely seperate from the toolbar that holds the icons.

>2 icons side by side

If only we had such guaranteed control of the icon position. Unfortunately there's some padding space between the icons (and, because of the asynchronous way in which icons are added there is the remote possibility that your icons might not actually end up next to each other)

What you CAN do is send window messages to the underlying ToolbarWindow32 control to add your own icons (probably; I've not bothered going further than interrogating it for an icon count)- but you'd then have to do all the handling of messages yourself since it sure as heck wouldn't magically become a real system tray icon.
 
can't we get handle of the system tray window?
use setparent and position a custom form inside it?

I am sure it is not that simple..

 
That's basically what I was talking about when I mentioned ToobarWindow32
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top