ATOUTFOX
COMMUNAUTÉ FRANCOPHONE DES PROFESSIONNELS FOXPRO
Visual FoxPro : le développement durable

Forum AtoutFox : Re: Editeur HTML de Fred A en contrib, interlignage   

Sujet

rss Flux RSS des derniers messages

Vous devez vous identifier pour pouvoir poser une question ou répondre.

jeu. 27 novembre 2014, 17h45
ybenam
Algérie Algérie

atoutfox.public.association

Re: Editeur HTML de Fred A en contrib, interlignage

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


Permalink : http://www.atoutfox.org/nntp.asp?ID=0000015469
20 286 messages dans le forum • Liste complète des messages

www.atoutfox.org - Site de la Communauté Francophone des Professionnels FoxPro - v3.4.0 - © 2004-2026.
Cette page est générée par un composant COM+ développé en Visual FoxPro 9.0-SP2-HF3