On 10/12/10 09:22, Paul R wrote: > >> >> Try using an Fl_Return_Button instead of a regular button. >> Spacebar is normally the keynav way to trigger a button when it has >> focus. >> When you want the Enter key to do it, us an Fl_Return_Button. >> >> See also: the 'ask' program in the test directory, >> which shows how the enter key works in a dialog. >> > Ok thanks for the advice, i noticed the spacebar works that way yes, > and i suppose i could just advise the user in the help file. I will > try the return button though.
You could also try setting the "when" type of your button to FL_WHEN_ENTER_KEY - that should give a similar result to using an Fl_Return_Button widget, but without the more elaborate drawing style. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

