Stan wrote:
>> "This widget produces an actual window. This can either be a main window,
>> [..] or a "subwindow" inside a window. This is controlled by whether or not
>> the window has a parent()."
> 
> That's better than messing about with Fl_Group::current().

        Yes; setting parent() 'seems to work',
        though I noticed the current() technique is what
        fltk's own fl_message/fl_ask dialog is using.

> I guess either my docs or my fltk version are out of date.
> Mine doesn't mention parent().   It says:
>   "Creates a new window. If Fl_Group::current() is not NULL, the
> window is created as a subwindow of the parent window."

        Yes, that's from the docs on the Fl_Window ctor.

        The parent() line is above that, first paragraph in the
        'Description' section. Goes back to at least fltk 1.1.3
        (oldest rev I've got on my machine), so it should be in there.

        Often, though, I refer to the web docs to keep up to date:
        http://fltk.org/documentation.php/doc-1.1/toc.html
        Nice thing about that page is it also has user comments
        which are sometimes useful.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to