Greg Ercolano wrote:
>               2) In the two callbacks, change:
>                       option_selected->value(o->label());
>                  ..to this:
>                       option_selected->value(o->text());

        I should add regarding the above: in this context, 'o' is a pointer to
        the Fl_Menu_Bar (not the Fl_Menu_Item).

        Since the menubar has no label, label() returns NULL in the above,
        making the value() blank.

        Using o->text() returns the title of "the last menu item chosen",
        which is I think what you wanted, eg:
        
http://fltk.org/doc-1.3/classFl__Menu__.html#65447e98577519c36eb6b3561192e7cd

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

Reply via email to