On 08/22/11 14:49, Jeff Paranich wrote:
> Hi All,
> 
> I've read "Article 415: How Does Resizing Work?" and have been battling with 
> trying to get one of my windows to behave how I'd like.  I have done a mock 
> sketch of my interface... it can be viewed here:
> 
> http://i56.tinypic.com/2i94b4z.png
> 
> The behavior I'm seeking may not be possible in FLTK, but I was hoping that 
> in the picture where Fl_Hold_Browser is located, that the right-face of the 
> widget (highlighted in yellow) would be clickable and could be resized 
> horizontally, and in doing so Fl_Box, Fl_Table_Row, and Fl_Text_Display would 
> be compressed.  And with this functionality, Fl_Window should still be 
> resizable however when resized Fl_Hold_Browser would remain horizontally 
> fixed but can stretch vertically, and all other widgets resize both 
> horizontally and vertically.
> 
> Hope this makes sense.  Is this or something very similar achievable?

        Sounds like you should use Fl_Tile to manage the resizable aspect
        in this case.

        I'd suggest putting all that stuff to the right of the yellow bar
        in a group, and make an Fl_Tile that contains the hold browser (left of 
yellow bar)
        and the aforementioned group (to the right of the yellow bar), and have
        the edges common so that when you glide over the border between the two,
        Fl_Tile will let you interactively resize them.

        Here's an example of using Fl_Tile to resize between 4 different
        widgets (in your case you'd only want two):
        http://seriss.com/people/erco/fltk/#GL4PortResizable
_______________________________________________
fltk mailing list
fltk@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to