FLTK logo

Re: [fltk.general] Understanding Fl_Pack.

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: Understanding Fl_Pack. imm Oct 03, 2022  
 
On Sun, 2 Oct 2022 at 23:01, Gonzalo wrote:
>
> I have used Fl_Pack in the past and I always struggle with its behavior.
>
> In the sample attached demo program I have an Fl_Pack that contains an Fl_Gl_Window widget and a normal Fl_Group inside an Fl_Pack.
>
> I would like the Fl_Gl_Window widget to stretch and fill the Fl_Pack whenever the Fl_Group is hidden when the Hide button is clicked.  How can I do that?
>

Hi Gonzalo,
FWIW, I've never been able to get along with the default behaviour of
Fl_Pack, so tend to go with something like Greg's suggestions of
putting things in a group and managing the resize directly as widgets
get added / remove.

Though TBH I never know about the "special" treatment for the "Last"
pack widget - if I had that might have helped a few times!

-- 
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/CAGFM6dZF5DU7Oi3XirDkmCjzuzWhxqjQJLtZ%3Dq7ECaKpMJ2uEw%40mail.gmail.com.
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'.