> So I have my Groupbox based on Fl_Group, and have a custom > Fl_Radio_Round_Button_Ex based on Fl_Round_Button. The radio buttons are > children of the groupbox. The radio buttons set themselves anytime they get > focus (moving arrows/selecting with mouse/etc.. cause the radio button to be > set/checked). When tab is pressed, it properly moves out of the group to the > next widget. It also emulations a double click if a hotkey is pressed. All > good there!! Here's the problem, when a user tabs back to the group, it > should set focus on the radio button that is set, instead it chooses either > last or first based on if shift-tab or tab. So I could override that in the > groupbox, problem is the groupbox doesn't know widget types (because widgets > don't have a global identifier). Within the radio button I can't reject > FL_FOCUS if value()==0 because that may be due to arrow keys and not a tab to > the group which is the only time that should be rejected. Any ideas?
I got it worked out - docs said it was safe to look at event_key() during FL_FOCUS, did that and reject focus if tab pressed, now all good. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

