Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Avoiding ON KEY LABEL
Message
De
10/09/2004 14:33:27
Gary Foster
Pointsource Consulting LLC
Chanhassen, Minnesota, États-Unis
 
 
À
26/07/2004 21:22:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00927965
Message ID:
00941158
Vues:
23
David,
I've gotten into this now and the menu is not enabled at first. I know that the GotFocus() is firing because I put a wait window nowait that displays, but the menu is disabled. If I set focus to another form, debug etc., GotFocus() fires again on return and now the menu is enabled. Does this ring any bells? Thanks.

Gary


>>Hi,
>>I need to provide my users with some navigation keys that can be used on modal forms. ON KEY LABEL works a little TOO well. For example, I use the PGDN key to move between records on some forms. Sometimes a fair amount of code is run here, doing lookups on other tables, etc. If the user has quick fingers, the PGDN will run code that hasn't finished running giving some confusing results to the user. I'd like to use the menu for these key assignments thinking that repeated key strokes would que up rather than firing instantly, but the modal form disables the menu options.
>>
>>Many thanks for any suggestions.
>>
>>Gary
>
>You could consider using menus with the modal forms. They do work if you call them in the form.gotfocus() event.
>eg.
>Myform.gotfocus()
>Do Myform.mpr
>
>So your menus can then have the normal hotkey assignments avoiding ON KEY LABELS completely. You do need to ensure that your form does fire the gotfocus method, ie there should be at least one control on the form which can receive the focus.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform