Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Timer in a Toolbar
Message
De
12/05/2003 11:36:34
Scott Butts
Ims Specialty Services
Twin Falls, Idaho, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00787155
Message ID:
00787363
Vues:
16
>>I just tried your code and the timer still dosen't fire. Thanks for the idea.
>
>Nothing was set to happen in my example. It was to to show how to put a timer on a toolbar. The following will trigger a messagebox.
>
>
>Public oTool
>oTool=Createobject("myToolbar")
>oTool.AddObject("timer1","timer1")
>oTool.Show()
>Define Class mytoolbar As Toolbar
>	Caption = "Toolbar1"
>	Name = "mytoolbar"
>Enddefine
>Define Class timer1 As Timer
>	Top = 5
>	Left = 5
>	Height = 23
>	Width = 23
>	Name = "Timer1"
>	Interval = 10000
>	Procedure Timer
>	    Messagebox("The timer is on!!")
>        Endproc
>Enddefine
>
>

I am sorry I should have explained that I changed the code a little to be similar to the above example but still nothing is displayed. I am using VFP5, it seems to work fine in 7. Is this a know issue with 5?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform