Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
On key label - is there a better way
Message
 
À
10/09/2003 07:26:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00827654
Message ID:
00827958
Vues:
16
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform