On 08.10.2009, at 00:49, Jonathan wrote: > I'm developing a robotics environment for my university. I've > created a main window with a 3d simulation of a robotic arm. All the > menus are done via subwindows with specific buttons each. The > problem is that sometimes many of these subwindows are open (shown) > and they overlap. > > I'd like to know if there's a way of "bringing to front" the last > clicked subwindow and/or to make shure that the window on top is the > one that catches the click/input. Should it be non-modal or something?
You have three window priorities: normal, modal, and non-modal normal windows stay below the other windows non-modal windows stay on top of normal windows, but only catch events when clicked modal windows stay on top of all other windows and catch all events for this application until closed there are also menu windows which have even higher priority. You may also be able to use Fl_Menu_Button to pop up a menu, or simply use pulldow() or popup() with an apropriate array of Fl_Menu_Item. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

