Information générale
Catégorie:
Codage, syntaxe et commandes
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
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