On Mar 26, 2007, at 1:26 PM, gga wrote: > Milan wrote: >> >> Can someone please tell, me is this a bug in FLTK 2.x branch, >> since people >> who use FLTK 1.1.x seem to have no problem with this, so I can >> start looking >> for some other possible (?) means to do this, or if it's not a bug >> then what >> is wrong with it!? >> > > The only way I have found to refocus the widget is to do a hide/ > show on > the main window.
Try to do a "show()" before the "take_focus()". Don't do the "hide ()". This should make the main window the first one again. Graphically, the popup (or non_modal) would still stay on top of the main window. ---- http://robowerk.com/ _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

