FLTK logo

Re: Resizing behaviour of nested widgets

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Resizing behaviour of nested widgets Greg Ercolano Aug 22, 2011  
 
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
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.