>
> Looking back at your original post, if you're saying
> size_range(W,0)
> is setting (changing?) the windows height to zero, that sounds like
> an FLTK bug, as size_range() shouldn't change the size of the window.
>

Yes, that's what I'm saying.

> I don't see this myself, though. At least not on linux with
> fltk-1.1.x;

I'm using fltk-1.1.x on solaris, but I'm viewing it with an X server
on a pc, which may have something to do with it.

>
>       Example:
>
> #include <FL/Fl.H>
> #include <FL/Fl_Window.H>
> int main() {
>     Fl_Window *win = new Fl_Window(400,300,"Example Wizard");
>     win->end();
>     win->size_range(400,0);   // minw, minh
>     win->show();
>     return(Fl::run());
> }
>

  Yes, your example sets the window height to zero on my platform.

> In noodling with the above, it seems that the '0' tells FLTK to keep
> the default; if I set 'minh=0', I can't make my window smaller than
> about 50 pixels before it 'stops'. This is the same as the default
> behavior, ie. if I comment out size_range() altogether, so it is
> likely a 'default'.
>
> If I change the minh=0 to minh=5, then it will let me size the
> window down to 5 pixels in height.

  Right. As discussed in the original post, setting minh=1 closely
  approximates the desired behavior.  Also note that
  size_range(400, 0, -1, -1) works as expected.
>
> The docs don't indicate zero as being a special value for minw/minh,

  Right.  I suspect that the implementation of what to do when
  maxh == minh is confused about what to do when both are zero.
  Unless one buys into the idea that zero is a value that fltk
  might pick as a "maximum size so that the window will fill
  the screen"

Best,
Stan

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

Reply via email to