Dear Vixens and Reynards:

How do I change the main menu on the fly in my app and have the changes stick?

Actually, I have just solved this, but I have no idea why my change works.

     My menu setup code has
          set sysmenu automatic
          set sysmenu to _medit
I then define various pads on _msysmenu and popups on the pads. This code has worked fine for nearly twenty years.

The problem is that I now want to be able to change the menu. When my setup menu code is executed, it works in that I can see that the menu does change. However, as soon as it returns out of one of the methods in the execution stack, the menu reverts to what it was before.

     My solution was a lucky guess.  I inserted
           push menu _msysmenu
between the two set commands.  Note that I do not have a pop menu anywhere.

Why do menu changes get thrown away sometimes? Why does my change work? The docs are rather less than clear in this area.

Sincerely,

Gene Wirchenko


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to