Page loading

Share your opinion
What do you think about gambaslinux.fr?
 
Interesting
It miss some informations
Excellent website
Results
WIDGETS GAMBAS
GAMBAS 3 SOFTWARES
TUTORIALS
Library
MENU - Icon Tray
Icon tray in the taskbar

trayicon.png
In your gnome or KDE taskbar, you can add an icon for your gambas application. Write simply this code :

PUBLIC MyTray AS NEW TrayIcon AS ("MyTray") 'declare an trayicon
PUBLIC MyIconPicture AS Picture = Picture["myicon.png"]'fixe  icontray picture

PUBLIC SUB Form_Open()
MyTray.Icon = MyIconPicture
MyTray.Show
MyTray.Tooltip = ("This is a gambas icon tray made with gambas")
END





Creation date : 23/11/2010 @ 22:47
Last update : 23/11/2010 @ 22:47
Category : MENU
Page read 5369 times


Print the article Print the article


react.gifReactions to this article


Reaction #2 

by spheris 21/12/2010 @ 20:04

caracole,
bien su que non, cela ne sert pas qu'à cela. En fait tu seras capable de lancer une appli, ouvrir un menu, ou autre chose avec ton nouvel objet MyTray. N'oublie pas qu'il hérite (autrement dit qu'il a le même comportement) qu'un objet. Il a des methodes (click,dblclick,drag...) et des propriétés(x,y,background,picture,...etc). C'est à toi de les utiliser. Si tu ne vois pas trop rdv ce soir sur le mini tchat en haut 5eme menu.
wink

Reaction #1 

by caracole 21/12/2010 @ 13:33

OK, ca fonctionne je vois bien une icone dans la barre de tache. mais après je fais quoi ?
Ca sert seulement à ca ?

Merci

QUICK MENU
SEARCH




LANGUAGE
COMPONENTS
Other
LANGUAGE
Where, who?
VISITS

   visitors

   visitors online

ARCHIVES GAMBAS 1/2
^ Top ^