Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Triggering a timer early
Message
De
04/09/2015 05:51:45
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
04/09/2015 05:45:40
Rob Clapworthy
Bespoke Software Systems
Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01624258
Message ID:
01624259
Vues:
90
>Hi
>
>I want to trigger a timer ony my form early whenever the user presses a command button
>
>What's the easiest way of achieving this?
>
>TIA

add a timer tmrKeypressed (for example) to the form

set forms KeyPreview to true
in forms KeyPress event
LPARAMETERS nKeyCode, nShiftAltCtrl
*set timer to 0
THIS.tmrKeypressed.RESET
*start timer
THIS.tmrKeypressed.enabled = .t.

*run code possibly inherited
RETURN DODEFAULT(@nKeyCode,@nShiftAltCtrl)
HTH
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform