Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Menu Shortcut keys still active when form released
Message
 
À
15/12/1997 13:39:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00065986
Message ID:
00065994
Vues:
29
>>I have shortcuts on the menu that provides navagation of the current table along with 'new', 'edit', 'save' and 'cancel' that get enabled and disabled when appropriate. These shortcut keys execute methods that are part of a navigation bar class on the data entry form. All this works fine. The problem occurs after the form is closed and the menu is popped (pop menu _msysmenu). When the form is destroyed and the main menu is displayed awaiting the next user action an user may press one of the shortcut keys and the application tries to execute the method of the previous forms navagaton bar class.
>>
>>Below is what gets run in the Init of the form along with other startup code:
>>
>>push menu _msysmenu
>>do menuname.mpr with THIS
>>
>>In the destroy event:
>>
>>pop menu _msysmenu
>>
>>Any help in resolving this problem would be greatly appreciated.
>>
>>Thanks,
>>
>>Greg
>
>I would try PUSH KEYS/ POP KEYS.

Thanks Edward.

I placed PUSH KEY before the PUSH MENU and then placed POP KEY after the POP MENU without success. Any other ideas would be greatly appeciated.

Thanks,

Greg
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform