|
|
> Make sure that the correct Tab is visible initially (Fl_Tab->value
> (myGroup)), then call Fl::focus(myTextWidget). A good time to do this
> is right after "show()"
>
Ok, I tried it, but it didn't work, the 'Ok' button still gets the focus. I even verified that my widget has the focus after the Fl::focus() call:
dlg->show();
dlg->tabs->value( tab0 ); // tab0 is Fl_Group of 'inp' widget
Fl::focus( dlg->inp );
std_out( Fl::focus()->label() ); // reports label of 'inp' widget
But it appears to lose the focus after that for some reason. Could this be due to a bug in fltk-1.1.x-r4509? If so, I can upgrade to fltk-1.1.7, but don't want do that unless it will actually fix the problem.
[ Direct Link to Message ] | |
|
| |