I'm trying to implement a sidebar that you can hide and show again.
I'm using fltk-2.0.x-r5864.

To do that I hide the sidebar group, then resize the group on the left to have 
the full window width with position x==0.  The left group is the window 
resizeable. To make this happen I had to call Window->init_sizes().  Then to 
unhide (show) the sidebar again, I resize the left group to x==sidebar_width 
and w==(window->w()-sidebar_width).  Again I call Window->init_sizes().

This works fine, but if I resize the main window after hiding the sidebar, then 
show the sidebar, it's width is changed.  If the window was widened, the 
sidebar is wider and vice versa.

Am I doing something wrong or is this a bug?
I have an example program (a revision of the test/resizable program)

Thanks
Barry Branham
_______________________________________________
fltk mailing list
fltk@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to