On Jul 19, 2007, at 9:27 PM, Stan wrote: > That isn't clear to me. There's no "free" window involved > with the pushbuttons.
Well, you can put buttons in any window, sub window or top level window. > I don't know about the menu stuff... is an > fltk menu a new top-level window, or is it a sub window that > draws itself outside its parent's boundaries? Um, no, there may be a misunderstanding. A subwindow is always part of its parent window and cannot overlap it. You are using X11, so in your case, a subwindow would be an X11 Widget with its own XID inside a top-level window with some other XID. Subwindows are needed if you must have and XID for some reason, for example to generate an OpenGL context, or to embed a movie player, etc. . Your code though, even though you call your class "SubWindow", is not generating a subwindow, but yet another top-level window. A subwindow is generated by true parenting, for example: Fl_Window *topLevel = new Fl_Window(100, 100); topLevel->begin(); // not really needed, but to make things clearer Fl_Window *subWindow = new Fl_Window(10, 10, 80, 80); // note: four parameters subWindow->end(); topLevel->end(); So to answer your question, menus are top-level windows without any decoration. ---- http://robowerk.com/ _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

