jeu. 27 novembre 2014, 23h51
eddymaue
atoutfox.public.association
Re: Systray et infobulbe
c'est gentil
merci beaucoup
ybenam a couché sur son écran :
> Nien qu'en retard par rapport à la date de la question, je viens juste de
> tomber sur la question. essaie ce bout de code et adapte à tes besoins:
Publi yform
Set Classlib To (Home()+"samples\solution\toledo\systray.vcx") AddI
yform=Newobject("ysystray_message")
yform.Show
Release Classlib Home()+"samples\solution\toledo\systray.vcx"
Return
*
Define Class ysystray_message As Form
Top = 1
Left = 128
Height = 73
Width = 180
ShowWindow=2
Caption = "Form1"
ysystr = .F.
nn = 0
Add Object timer1 As Timer With ;
Top = 12, ;
Left = 12, ;
Height = 25, ;
Width = 24, ;
Interval = 3000, ;
Name = "Timer1"
Add Object systray1 As systray With ;
Top = 24, ;
Left = 96, ;
Height = 24, ;
Width = 24, ;
Name = "SYSTRAY1"
Procedure ysound
Try
Set Bell To (Addbs(Getenv('windir')))+"MEDIA\tada.WAV"
?? Chr(7)
Catch
Endtry
Endproc
Procedure Activate
Thisform.Hide()
Endproc
Procedure Init
With Thisform.systray1
.IconFile = Home()+"GRAPHICS\ICONS\MISC\FACE05.ICO"
.AddIconToSystray()
.ShowBalloonTip("this is the first balloon message"," Message systray
--"+Ttoc(Datetime()), 2,3) Endwith
Thisform.ysound()
Endproc
Procedure timer1.Timer
Thisform.nn=Thisform.nn+1
Thisform.ysound()
Thisform.systray1.ShowBalloonTip("this is the ("+Trans(Thisform.nn)+")
balloon message(click icon to stop)"," Message systray --"+Ttoc(Datetime()),
2,3) Endproc
Procedure systray1.balloonclickevent
Thisform.Release
Endproc
Procedure Destroy
Clea Events
Endproc
Enddefine
--
Merci de partager avec moi votre immense savoir que je me ferai plaisir
d'absorber...
il va de soi que je vais vous en laisser un peu
Politesse et savoir vivre oblige ;0)
---
Ce courrier électronique ne contient aucun virus ou logiciel malveillant parce que la protection avast! Antivirus est active.
http://www.avast.comPermalink : http://www.atoutfox.org/nntp.asp?ID=0000015473