Post by Greg Raffaelle
I set the environment variable APPMENU_DISPLAY_BOTH=1 as suggested and
the program menu is now displayed on both the global unity menu at the
top of the screen and on the main form.
However, I still believe the program main class is only receiving show
menu events from the menu on the main form. The attached pdf shows two
screen shots with the program file menu displayed. The image on the
left is the file menu displayed from the top menu and the one of the
right is the file menu displayed from the main form. In the main class
I use the file menu _show() event to displayed recently opened file
names as items 1 through 5 at the bottom of the file menu. On the left
image you can see that item 1 is blank but on the right image the file
name test2.bps appears besides item 1. I did not perform any other
program operations between these two screen shots so the file menus
should have been displayed the same. Also note the underlining of short
cut letters (keys) does not show on the file menu in the right image.
When I set a breakpoint on the show menu event sub in the main class the
program does not stop when the file menu is selected from the top menu,
but it does stop when the same menu is selected on the main form.
Any suggestions on getting the two menu to display the same would be
I'm afraid there is no solution.
The "AppMenu" protocol made by Ubuntu is poorly documented, and it >seems
that there is no way to be warned when a external menu is shown.
problems with Ubuntu Unity Desktop in my email above.
event and underlining of shortcut menu letters works correctly.