Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Menu bar!!!
Message
De
25/04/2001 07:58:01
 
 
À
24/04/2001 16:50:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00499185
Message ID:
00499483
Vues:
22
you might want to add a timer to the screen object with _SCREEN.AddObject("MyDateMenu","MyDateMenu") to refresh part of the menu.
define a class based on the timer object with interval of 1000. remove the old menu ( ok, about 1 second old ) then add the new one ( this would be to update seconds, you cound change the interval 60000 to just update the mins ) on each timer event, where the new date and time is used as the key.
define Class MyDateMenu as timer
   this.interval = 1000

   procedure timer
      relase pad DateMenu of _Msy Menu
      DEFINE PAD DateMenu OF _MsysMenu PROMPT ttoc(datetime())
   endproc
enddefine
not tested...probably missing something, but i've done similar things in the past.

- jer
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform