Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help! How to implement this?
Message
From
31/12/1999 01:13:41
 
 
To
31/12/1999 01:03:16
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00310827
Message ID:
00310828
Views:
24
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform