Bonjour
J'ai voulu faire une icône dans le Système Tray mais j'ai un probleme.
J'ai mis un texte (tooltip) et quand je passe dessus ça fonctionne. C'est l'icône elle même qui ne va pas. C'est pas l'icône que je veux, ça me met un panneau avec un point d'exclamation. Je ne sais pas de quoi ça peut venir
Help me
Cordialement
Jagang
PS: J'ai essayé avec les formats .ico et .png
Systeme tray
salut Jagang ,
si tu aurai un petit bout de code sa aiderai d'avantage si non en voici un ou tu choisis ton icone avant le lancement chez moi sa fonctionne très bien.
@++
si tu aurai un petit bout de code sa aiderai d'avantage si non en voici un ou tu choisis ton icone avant le lancement chez moi sa fonctionne très bien.
Code : Tout sélectionner
IconName$ = OpenFileRequester("choisir l'icone", "", "icone|*.ico" , 0)
If OpenWindow(0, 100, 150, 300, 100, "", #PB_Window_Invisible)
AddSysTrayIcon(0, WindowID(0), LoadImage(0, IconName$))
SysTrayIconToolTip(0, "Icon 1")
Repeat
Event = WaitWindowEvent()
If Event = #PB_Event_SysTray
If EventType() = #PB_EventType_LeftClick
End
EndIf
EndIf
Until Event = #PB_Event_CloseWindow
EndIf
@++
Windows 10 x64, PureBasic 5.73 x86 & x64
GPU : radeon HD6370M, CPU : p6200 2.13Ghz
GPU : radeon HD6370M, CPU : p6200 2.13Ghz