Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Help! How to implement this?
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.
I am able to implement the 2secs delay, but don't know how to implement the other part.
One implementation of spacebar functionality didn't work. This is what I tried.
In my 2sec event handler of a timer, I am calling InKey() and checking whether user currently pressed SPACEBAR. If yes, then don't hide the splash else hide it. But Inkey() is always returning 0(i.e. no key was down instead of 32) even though I pressed SPACEBAR key down.
Any help is appreciated.
Thanks
Puri Malluru
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement