Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Menu reset in Application
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Titre:
Menu reset in Application
Divers
Thread ID:
00830740
Message ID:
00830740
Vues:
52
I am running a VFP6 application on Win2000 systems using a menu managed through the Menu Designer.

Menu options, for discussion sake, are File, View, Reports, Processes, Other. The application loads and the menu shows correctly - all seems to be fine. While running the application a couple problems have started occurring where the menu options will reset somehow.

Example one: The "View" menu will have two new menu pad items. These new menu items are "Browse "blahblah.dbf" and "Table Designer", just as if in the VFP development environment.

Example two: A form is opened from the Reports menu and a report is previewed from that form. When the report preview closes and focus is returned to the form, the application menu has been completely reset to File, Edit, Tools, Window. Stepping thru the code shows that this menu transition occurs when the program cycles back to the Read Events command.

There is a single location in the application that turns on developer options and it is set to .F. There is nothing in the app that programatically changes menu pads or switches menus.

We have ensured that the menu.mpr file is current (deleted old version, rebuilt it, etc.). The application is always built with "rebuild all". Made sure there's nothing in the path that might conflict.

What can cause this type of behavior?

There are some sledgehammer techniques we are using to reset the correct application menu. And we have tried adding a space in front of the "View" menu caption - this seemed to resolve the problem in example #1.

There has to be a better way, though, and I would really appreciate any input that you might have to offer!

Thanks,
Margaret
Margaret Duddy
mmd@outformations.com
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform