On 01.04.2009, at 11:10, MacArthur, Ian (SELEX GALILEO, UK) wrote: > >> I have been using fltk for a few years now but oddly enough I >> just recently noticed that whenever a menu is opened, the >> main thread stops running until the menu is released. >> >> I am using my own main loop which does the regular stuff: >> fl::check, update world, draw, etc. >> >> Other threads started by me seem to continue to do their >> work, but the main one blocks. Almost as if the menus where >> modal windows like fl_ask. Is there a way around this because >> I just noticed it is really annoying. > > In effect, menus *are* modal windows.
As they should be. If you click next to an open popup menu, it would be quite unexpected if that starts an event other than closing the menu. If you need to attend to other actions during an open popup menu or standard dialog, you can use timeouts or idle functions. ---- http://robowerk.com/ _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

