>
> > Also, unlike the original, the patched version omits the user's
> > callback when a submenu is selected.
>
>       That should be the correct behavior, no?
>       Picking a submenu should be the same as choosing nothing.
>
>       If you want the callback to be called when a submenu is selected,
>       you can set menubutton()->callback(), though I'm not sure why
>       you would in the context of this widget.

I'm not sure either.

I was thinking that a user who attached a callback to the
Fl_Input_Choice widget with, say, FL_WHEN_NOT_CHANGED or FL_WHEN_RELEASE_ALWAYS 
would expect the callback to fire when
clicking on the submenu.  At least that's what I would expect,
though admittedly I'm a bit hazy on the intended semantics of
some of the WHEN conditions.

On the other hand, I went back and experimented a bit and found
that this is not the case for Fl_Choice.  So at least Fl_Input_Choice
and Fl_Choice are consistent after your patch.

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

Reply via email to