j'ai trouvé comment faire apparaitre des bulles :
Code : Tout sélectionner
Structure NOTIFYICONDATA2
cbSize.l
hwnd.l
uID.l
uFlags.l
uCallbackMessage.l
hIcon.l
szTip.b[128]
dwState.l
dwStateMask.l
szInfo.b[256]
StructureUnion
uTimeout.l
uVersion.l
EndStructureUnion
szInfoTitle.b[64]
dwInfoFlags.l
EndStructure
Procedure SysTrayIconBalloon(title.s,message.s,type.l)
Balloon.NOTIFYICONDATA2
Balloon\cbSize = SizeOf(NOTIFYICONDATA2)
Balloon\hwnd = WindowID()
Balloon\uFlags = 16 ; #NIF_INFO
Balloon\uTimeout = 10000
Balloon\dwInfoFlags = type
PokeS(@Balloon\szInfoTitle,title,63)
PokeS(@Balloon\szInfo,message,255)
Shell_NotifyIcon_(#NIM_MODIFY,@Balloon)
EndProcedure
OpenWindow(0,0,0,110,105,#PB_Window_SystemMenu|#PB_Window_ScreenCentered,"Balloon Tips")
CreateGadgetList(WindowID())
ButtonGadget(0,5, 5,100,20,"Simple")
ButtonGadget(1,5,30,100,20,"Information")
ButtonGadget(2,5,55,100,20,"Avertissement")
ButtonGadget(3,5,80,100,20,"Erreur")
AddSysTrayIcon(0,WindowID(0),LoadImage(0,"2devnews.ico"))
SysTrayIconToolTip(0,"Systray Tooltip")
Title$ = "Démonstration"
Info$ = "Une première ligne de texte" + Chr(13)
Info$ + "Une deuxième ligne" + Chr(13)
Info$ + "Et même une troisième" + Chr(13) + Chr(13)
Info$ + "En fait, autant que vous voulez !"
SysTrayIconBalloon(Title$,Info$,1)
Repeat
Select WaitWindowEvent()
Case #PB_Event_CloseWindow : Break
Case #PB_Event_Gadget
Select EventGadgetID()
Case 0 : SysTrayIconBalloon(Title$,Info$,0)
Case 1 : SysTrayIconBalloon(Title$,Info$,1)
Case 2 : SysTrayIconBalloon(Title$,Info$,2)
Case 3 : SysTrayIconBalloon(Title$,Info$,3)
EndSelect
EndSelect
ForEver
End
qu'est ce que ca donne sous win98 ?