Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
On key label - is there a better way
Message
From
10/09/2003 14:41:31
 
 
To
10/09/2003 07:26:12
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00827654
Message ID:
00827958
Views:
18
Hi Marcia

Good point. My base form class has a SetHotkeys and a ClearHotKeys which I deactivate & active during crutial points but it does mean that keystrokes can be lost. KeyPress would be another way.

Is there an easy way to get timers to wait until other code has finished executing before running it's timer code? I remember reading something about a sort of block execution mode somewhere but have never been able to find it again.

Regards
Geoff

>Hi Geoff.
>
>I have a number of visual forms where I set standard 'hot keys' using ON KEY LABEL.
>
>A better way would be for all of these forms to inherit from a common parent andadd a custom method to the parent class. You would Set the KeyPreview property to true and call your custom method from the form's KeyPress event.
>
>This would be much better than using an OKL which unconditionally interrupts any code that happens to be running when the key is pressed.
>
>Just my $.02
May all your weeds be wildflowers
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform