General information
Category:
Coding, syntax & commands
No, timers do not fire on toolbars. This is a well known bug. So, they don't fire if the timer is placed on the toolbar or it is added programatically to the tollbar using the AddObject method.
One solution is to add the timer to a different container (the _screen object, for ex), as two other members already told to you. Still, I don't like this solution because you must add an object (the timer) to a container that has nothing to do with your toolbar, only to work around a bug.
Another solution is to create a new property to your toolbar and link a timer to
this new property using the CreateObject() function:
MyToolbar.MyTimer = CreateObject("Timer")
Doing this, the timer will fire and you added it to the container (the toolbar, in this case) to which the timer belongs to.
Vlad
>I am attempting to place a timer on a toolbar where it will mediate the advance of a DIY progressbar. Enabling the timer object seems to elicit no events at all.
>
>Same object fires off timer event ok on a regular form.
>
>Help tersely says some control on toolbars cannot receive the focus. Is that all?
>
>John Burton
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