I had a problem where some windows could no longer be increased in size by dragging them. After some investigation, I discovered that Fl_Window::resize calls size_range with the given width and height. So after an explicit resize() from my app, it sets size_range to the size I gave, and sets its max resize to the current size. I worked around this by setting the size_range to (10, 10, 10000, 10000) in the window constructor. I tried doing 0 as the doc suggests, but while it does seem to get turned into 32000 in size_range_, I still can't resize the window.
This is OS X, fltk 1.1.8, and the line in question is Fl_max.cxx:2116. It looks like the X backend does this too. The code looks like it's on purpose, but it seems confusing and not what I expect. I also couldn't find that it was documented anywhere. Also, it's kind of bogus how size_range silently casts its arguments to shorts, even though the signature documents ints. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

