DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2613
Version: 1.3-current


This is what the docs say about invisible menu entries:

   FL_MENU_INVISIBLE    = 0x10,   // Item will not show up (shortcut will
work)

Unfortunately, that's not true. The shortcut is ignored for invisible
entries. I've found that this is caused by two bugs:

1. Fl_Menu_Item::find_shortcut() checks activevisible(), when it probably
should be checking active().

2. Fl_Menu_Item::find_shortcut() uses next() to iterate, but that function
is defined as skipping invisible items.

The first is easy to fix, but the latter not so much. One easy fix is to
do the iteration manually in find_shortcut().

Suggestions?


Link: http://www.fltk.org/str.php?L2613
Version: 1.3-current

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

Reply via email to