I want multiple tray icons in my app.?
Just create a CoolTrayIcon object for each tray icon you want. The component is optimized
to share resources between the tray icons.
How do I send a message to the tray icon through code?
Use PostMessage or SendMessage and specify the message as the LParam parameter.
Here's an example of sending a WM_LBUTTONDOWN message, invoking the tray icon's
OnMouseDown event:
I want to hide ALL windows, including dialogs and popup forms?
Minimize the app. before calling HideMainForm, like this:
Application.Minimize;
CoolTrayIcon1.HideMainForm;
I want to override the "hide inactive tray icons" feature in WinXP?
I don't know exactly how to do this, but try refreshing the tray icon at regular
intervals. Anyway, it's not a good idea to override standard Windows behavior.
When does the OnStartup event occur?
The OnStartup event occurs before the owner form's OnCreate event.
What are some good rules for showing text in a tray icon?
You only have 16x16 pixels to draw inside, so use only 1 or 2 lines of text. Use
high contrast colors, like white background and black text, perhaps with a border.
Don't use fonts with serifs. For multiline text I think the font 'Small Fonts'
approx. size 6 looks best. Set OffsetY to -1 and LineDistance to -2.
NOTE: It's easy to experiment if you enable the DesignPreview property.