[Gambas-user] Menu Show Event with Unity desktop
Greg Raffaelle
greg.raffaelle at ...2755...
Thu Jan 9 05:07:19 CET 2014
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
appreciated.
Thanks,
Greg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: menushow.pdf
Type: application/pdf
Size: 215156 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20140108/abda9fc3/attachment.pdf>
More information about the User
mailing list