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

[STR New]

I'm not sure how you defined flag, but following will work:
 * you already uncommented parts inside Menu_popup.cxx
 * in fltk/Flags.h add "MENU_STAYS_UP = 0x00020000," (it reuse
LAYOUT_VERTICAL value, but last one is not used inside menu labels)
 * myitem->flags(myitem->flags()|MENU_STAYS_UP); (copies current flags,
like alignement and etc.)

This should keep menu opened after myitem callback, but for other items
will close it.

Link: http://www.fltk.org/str.php?L1638
Version: 2.0-feature

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

Reply via email to