>              By default in ask popup, ENTER is the shorucut for YES and ESC
> is the shortcut to NO. How can I change. My requirement is focus should be
> on NO and ENTER should for NO only. When I pressed ESC button then YES
> should be done.

You could use fl_choice, rename the buttons and invert the return value.

This is normal use of fl_choice:

if (fl_choice("Are you sure?", "No", "Yes", 0)) He_Is_Sure();

This might serve your needs better:

if (!fl_choice("Are you sure?", "Yes", "No", 0)) He_Is_Sure();
_______________________________________________
fltk mailing list
fltk@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to