>
> > I want to stress that, as written in the file,
> > Fl_Sys_Menu_Bar.cxx is not a complete implementation of the Fl_Menu
> > class. Some of the things that do work are shortcuts and=20
> > FL_MENU_TOGGLE.
>
> Is this saying that shortcuts *do* work, or that they *do not* work?
>
> I think when I tried this, the SYS_MENU_BAR shortcuts did not work - but
> that could very well be because something else was broken in my build...
>
> I will be very happy if they *do* now work!
>
> Cheers,
> --=20
> Ian

Yes, they *do*, but only through a defined shortcut (e.g., FL_META+'x')
If you put a & in the title, it does nothing. It is strange that
you say it did not work for you because I did not change that for a long time. 
I use, for example:

  Fl_Menu_Item items[15];
  memset(items, 0, 15*sizeof(Fl_Menu_Item));
  items[0].label("Menu1");
  items[0].flags = FL_SUBMENU;
  items[1].label("Cmd1");
  items[1].flags = FL_MENU_TOGGLE|FL_MENU_VALUE;
  items[2].label("Cmd2");
  items[2].flags = FL_SUBMENU|FL_MENU_DIVIDER;
  items[3].label("Cmd3");
  items[3].shortcut(FL_META + 'x');
  items[3].callback(about, NULL);
  items[4].text = 0;
  items[5].label("Cmd4");
  items[6].text = 0;

  Fl_Sys_Menu_Bar *sysmenu = new Fl_Sys_Menu_Bar(0,0,0,0,NULL);
  sysmenu->menu(items);

_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to