Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Thank you, Paul. I try it.
Denis Gavrikov.
>This is a known bug: Timers never fire in a toolbar.
>
>If you want to have a timer in a toolbar:
>
>Create a new property (MyRuntimeTimer) to your container (that is placed in the toolbar) or directly to the toolbar. Add the following code to the Init of the container or toolbar:
>
>This.MyRuntimeTimer = CreateObject("MyTimer")
>This.MyRuntimeTimer.Enabled = .T.
>
>Where MyTimer is your class for the timer you want to add. The timer will fire even in a toolbar if is added at runtime using CreateObject().
>
>Vlad
>
>>Hello.
>>I have a problem. I have a Toolbar. I placed a container in my toolbar.
>>Container has the timer control... Timer.Enabled = .F.
>>In the Container.MouseMove Event I have the following code Timer.Enabled = .T.
>>In Timer.Timer Event I have a code...for example..
>>WAIT "Timer.Timer Event" WINDOW NOWAIT, but this code doesn't work ...
>>Why ? I do not understand.
>>Thanks for any help.
>>Denis.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement