Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding timer to a command button group
Message
 
À
19/02/1999 11:30:04
Donny Sims
Independent Computer Consultants Inc
Scottsboro, Alabama, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00189316
Message ID:
00189332
Vues:
9
>Hi all
>
>Can someone tell how (or if its possible) to add a timer to a command button group ? Their does'nt seem to be a way to do it visually. I thought of doing an addobject() in the init of the group but then how do I define the timer event ?

Hi Donny,

There's nothing keeping you from subclassing the timer visually or:
DEFINE CLASS MyTimer AS TIMER
  * Set the interval at one minute in this example
  Interval = 60000

  PROCEDURE Timer
    * What ever code you want here.
  ENDPROC
ENDDEFINE
The you can issue a SET PROCEDURE TO < procname > and then CREATEOBJECT('MyTimer'), for example.

hth,
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform