Stan wrote:
> Here's an illustration.  When I run the little program below,
> and shrink the window horizontally, the boxes' w() dimensions
> are 100, but they are obviously drawn smaller than that.

        On my system they stay 100 in width, but I think you'll see
        their x/y positions continue moving around such that they
        cross over each other, making them draw over one another.

        If you don't want them to move at all, lock down their
        x/y positions too, or prevent their x/y positions from crossing.

        If you lock down the w(), then you should probably lock down
        the window resize as well, to prevent the user from sizing
        the window smaller than the 100 width widgets can fit into.

> It's possible that this is all an artifact of my operating
> environment (X/Solaris running remotely).  If anyone could find
> the time to confirm or deny this I'd certainly appreciate it.

        It should be working as designed; the Fl_Group that is
        parenting the two boxes (Fl_Double_Window is an Fl_Group)
        will resize and reposition its children to preserve their
        relative size/positions to fit the newly sized window.
        That's its normal resizing behavior.

        If you don't want it to resize the widgets, you can put
        the widgets in a scroll instead..
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to