For my compiled MS apps I like to use a systray icon and allow the user to "minimize to systray". We can set the tooltip text that displays when the user hovers the mouse pointer over the systray icon. Multi-line tooltip text is possible just by including %CR% in the string, for example:
Code: Select all
Let>use_counter=0
AddTrayIcon>\\123.123.12.123\myapp\myapp.ico,MyTrayIcon,MyApp%CR%Uses: %use_counter%
AddTrayHandler>MyTrayIcon,OnClick,DoMyAppMainWindow
AddTrayHandler>MyTrayIcon,OnDblClick,DoMyAppMainWindow
MyApp
Uses: 0
My problem is, when the variable use_counter changes, I want the tooltip text to show the new value. I was not able to find a way to do this so I put in a support request and the reply was:
Yes Marcus, please add this to the Wish List... much appreciated.Marcus Tettmar, May-26 10:53 (BST): wrote:All I can do right now is add to the wish list a new function for modifying the tray properties (such as the tooltip). At present it can only be created, and deleted. There's no way to modify an existing tray icon. So we need a new function for this.
The following Enhancement Suggestions also relate to tray icons so perhaps they could all be considered/developed as a whole:
[Open] Is a Right-Click Menu for System Tray Icon Possible?
AddTrayIcon Suggestion
By the way... if anyone out there knows a Win API function that can actually modify the tooltip text on an existing tray icon, please let us know.
Thanks and take care