> I've come across some odd behavior with windows as subwindows, when
> trying to show/hide or add/remove the subwindow. The subwindow remains
> invisible until the containing window is resized. When I replace the
> subwindow with a group, I get the behavior I expect. My understanding
> is that behavior should be identical in this case.
>
> I've reproduced this under both FLTK 1.3.2 and 3 from a recent svn
> checkout, under OS X 10.6.8.
>
> Example code:
> http://gist.github.com/4478672
>
> Bug, or simple misunderstanding on my part?
>

Two comments off the top of my head:

The usual FLTK-1.3 idiom is to create your window/widget hierarchy
from the top down, and let the implicit begin() in the constructor
of Fl_Group derived widgets take care of adding lower level widgets
in the correct place in the hierarchy, although you might have to
explicitly call the corresponding end() method.

It's also usual for the contents of a Fl_Group derived widget to be
complete before you call resizable() so that it can work through all
of its children to calculate which sizes need to be fixed and which
can change.

Don't know whether these are the cause of your problems though...

D.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to