Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Systray class. How to enable/disable icon file?
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01021517
Message ID:
01021565
Vues:
19
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform