Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help! How to implement this?
Message
De
31/12/1999 01:13:41
 
 
À
31/12/1999 01:03:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00310827
Message ID:
00310828
Vues:
23
>Hi,
>I have a form that I am using as splash screen. When it comes up, it stays for 2 secs and goes away. If user presses SPACEBAR key down then it should stay even after 2secs until user finally leaves SPACEBAR key up.
>
>In Foxpro I don't see any events for key down and key up. Only event that is available is Keypress for keyboard events.

>Puri Malluru

Space bar produces a true ASCII character. So there is no up and down, just pressed or not pressed. You might experiment with testing for the shift keys: uppercase, control, or alt.

My preference would be to use the mousedown and mouseup events. If the user wants to keep the splash screen visible they click on it and hold the clicker down. You keep it visible until they let go and there is a mouse up event.

HTH.

Peter Robinson
Peter Robinson ** Rodes Design ** Virginia
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform