General information
Category:
Forms & Form designer
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.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only