On 30.03.2011 19:55, Not Real wrote: >> You can get the current focus widget with >> >> Fl_Widget fw = Fl::focus(); >> >> and compare it with your list of Fl_Input fields, if you have such >> a list, but from your question above, I assume yes. Take care that >> it is not another widget type that has the focus (a button can also >> have the focus). >> >> <http://www.fltk.org/doc-1.3/group__fl__events.html#ga7f0e9836db43268979e0b3a999583b7f>
... > Thanks Albrecht! The approach using Fl:focus() worked... just a heads up it > returns a ptr, so Fl_Widget* fw = Fl::focus(). Yep, that was a typo, thanks for correction for others who read this later. I'm glad that I could help you. Albrecht _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

