I'm trying to sort out focus change events for Linux, but I've got an issue or two with it at the moment.
Currently, when you tab out of a text field, not much happens in the way of events being fired.
I had a dig around the code, and found Fl_Input.cxx in which there is a handle() function. To the event switch statement, I add this :
Which, generates output - Unfocus event fired! : 7 - 7 being the FL_UNFOCUS event.
That is nice, but I can't find a way to propagate this event up to the onCallBack() method of TFLWidget().
If I add a do_callback() call in the above code, it only shows a key-up event (that being the tab key). The unfocus event seems to disappear.
Ho hum....
Currently, when you tab out of a text field, not much happens in the way of events being fired.
I had a dig around the code, and found Fl_Input.cxx in which there is a handle() function. To the event switch statement, I add this :
case FL_UNFOCUS: printf("Unfocus event fired! : %d\n",event); break;
Which, generates output - Unfocus event fired! : 7 - 7 being the FL_UNFOCUS event.
That is nice, but I can't find a way to propagate this event up to the onCallBack() method of TFLWidget().
If I add a do_callback() call in the above code, it only shows a key-up event (that being the tab key). The unfocus event seems to disappear.
Ho hum....