Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Do timers work on toolbars?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00100012
Message ID:
00100044
Vues:
94
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
Fil
Voir

Click here to load this message in the networking platform