Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Not really with the designer, but a menu issue anyway
Message
 
To
15/04/1998 15:44:44
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00091727
Message ID:
00092349
Views:
24
>>>>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
>>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.
>>
>
>Humor me :-) When going into one of the modal forms, SET SYSMENU OFF before your DO FORM....then, on return to the calling form, SET SYSMENU ON or SET SYSMENU AUTO, whatever your current setting is. Lemme know if this helps.

Well, that didn't work either. The switch takes place as the events move from the modal forms .cmdExit.Click() method which on has THISFORM.Release() in it and when it enters the modal forms .Destroy() event where I'm killing some object references, it switches. This is from the debugger. There are no lines of code to change anything regarding menus. It just happens when it enters the .Destroy() event. Oh well.

Steve
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform