Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Not really with the designer, but a menu issue anyway
Message
 
To
14/04/1998 11:53:15
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00091727
Message ID:
00091930
Views:
23
>>I have a set of five forms that will automatically pop up the correct menu bar according to a property that they contain. There are 3 different menus that can possibly be displayed depending upon which form is "on top". The menus are activated through the .Activate() event in my form template class. The problem is this; any modal dialog forms (which do not have this menu property, nor any code to run to display a menu) always swap menus. For reasons that I cannot seem to pinpoint, when these modal dialogs enter their .Destroy() event, I can see the wrong menu getting displayed. No code is run to do this....it just happens. Modal forms have their own form template, have nothing is in their .Activate() event and are not in anyway related to the form template used for modeless forms. I've managed to work around it, but the menus still "flash" as they are swapping so I know it is still doing it. Anyone else ever see this?
>>
>>Steve
>
>OK, maybe I'm oversimplifying the problem, but what is the SET SYSMENU setting. If it's ON or AUTO when going into those modals it might have something to do with it.

SET SYSMENU TO
is issued in the "main" of the application. Doesn't that shut off the system menu? None of the menus in this app have anything to do with any VFP menus. They are all built using the menu designer. This app does run in a top-level form but the appropriate box is checked. The menu that reappears is the "main" menu, the first one that is run......I don't know if that matters or not. I am not issuing any push or pop commands so they are just hanging around in memory until the app closes where they are released.

Steve
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform