On 21 Jun 2010, at 18:21, Pablo Stickar wrote: > It was not clear to me from the docs that null pointers to menu > items were interspersed in the menu. That explains the effect very > well.
The menu structure uses the NULL entries to mark the ends of each sub- menu section and so on (and I think a series of NULL's to end...) Hmm, I think this is documented somewhere, actually. Though I don't know where off-hand. > I guess it is ok to use the same shortcut for entries on different > submenus, as "File/&Close" and "Edit/&Copy". At least the german > version of Firefox has plenty of those cases. I'm not sure - I'd be wary of that, and test just to be sure. I think the shortcuts that fltk auto-inserts for the "&Label" (or indeed "La&bel" or whatever...) shortcuts are in global scope so probably clash with entries in other menus... Shortcuts that you create explicitly might have menu scope I suppose - I don't know for sure. I always make sure my shortcuts are globally unique anyway, as I find I get confused if the same shortcut means different things depending on which menu has the focus - that just seems like a weird bit of UI design to me! _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

