Icone de notification
Rédigé par spheris
Aucun commentaire
![trayicon.png](http://www.gambaslinux.fr/img/widget/trayicon.png)
Dans votre barre des tâches gnome ou KDE, (si on peut la surnommer comme cela sous linux), nous allons ajouter un icone au moyen de Gambas. Il suffit d 'écrire le code suivant :
PUBLIC MyTray AS NEW TrayIcon AS ( MyTray ) 'declare un trayicon PUBLIC MyIconPicture AS Picture = Picture[ myicon.png ] 'fixe l 'image du trayicon PUBLIC SUB Form_Open() MyTray.Icon = MyIconPicture MyTray.Show MyTray.Tooltip = "Ceci est un Icon Tray realise avec Gambas" END
![](plugins/plxEditor/plxEditor/smilies/smile.png)