Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Systray class. How to enable/disable icon file?
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01021517
Message ID:
01021565
Views:
21
Check http://forum.foxclub.ru/read.php?f=5&i=40937&t=40927

>I need to be able to toggle iconfile On/Off programatically. That is, if some even occurs I want to display the icon in the System Tray. And then, when another event occurs to remove the icon from the system tray.
>
>Here is what I did:
>1. Set value of an myicon.ico file to the property .iconfile.
>2. Changed argument of the method .AddIconToSystrayAtInit to .F.
>3. When event to display the icon occurs I call
>
>thisform.systray1.addicontosystray()
>
>4. When event to remove the icon occurs I call:
>
>thisform.systray1.cleariconlist()
>
>And this is the problem. It works, the icon is removed, but subsequent calls to .addicontosystray() are ignored?
>
>I would appreciate any suggestions.
>
>Thank you.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform