Barry Branham wrote:
> 
> Your easy solution worked.  I didn't think of it because I was fixated on 
> figuring out why the hidden sidebar's size should change in the first place.  
> Still wondering about that.

In FLTK 1.1 it doesn't matter, if a widget in a group is hidden or not,
resizing occurs independently of the widget's shown() state. I think
that FLTK 2.0 will do it the same way. Otherwise, hidden widgets would
change their places, if the window or group is being resized.

If you wouldn't change any sizes when hiding the sidebar, everything
would be fine when showing it again (also without changing sizes),
after resizing the window.

In your case, you modify the sizes of adjacent widgets after hiding
the sidebar group, and that makes things more difficult. If you
would also change the sidebar's width to 0 (maybe _instead_ of hiding
it), then it would be clear that you must also change its width
when "showing" it again.

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

Reply via email to