Hi,
The following is a fragment of code I use to make a menu which uses &
(ampersand) shortcuts.
The problem is the following:
-- To activate top level items which have sub items, shortcuts work fine (Alt-F
in the example)
-- To activate subitems, I need to use shift (Alt-Shift-O in place of just "O"
after entering to File menu)
-- To activate top level items not having sub items, shortcuts just don't work
(Alt-T )
Any Suggestions?
Thanks, David
------------------
/*Begin of code fragment*/
menuitems = new Fl_Menu_Item [10];
memset (menuitems, 0, sizeof (Fl_Menu_Item) * 10);
t = 0;
menuitems [t].label ("&File");
menuitems [t].flags = FL_SUBMENU;
t ++;
menuitems [t].label ("&Open");
menuitems [t].callback (open_cb);
t ++;
menuitems [t].text = 0;
t ++;
menuitems [t].label ("&Top");
menuitems [t].callback (top_cb);
t ++;
menuitems [t].text = 0;
/*End of code fragment*/
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk