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. Albrecht Schlosser Oct 03, 2022  
 
On 10/3/22 11:52 Albrecht Schlosser wrote:
On 10/3/22 01:22 Greg Ercolano wrote:

    You might be able to use Albrecht's new Fl_Flex widget (new in 1.4.x) for this,
    I'm not sure. He can probably advise.

Yes, probably. I didn't try Gonzalo's demo program though. But Gonzalo's statement "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" sounds like a good reason to use Fl_Flex.

OK, I had some spare time and tried Gonzalo's demo. I replaced Fl_Pack with Fl_Flex everywhere and changed:

// pack->init_sizes();
pack->layout();
// pack->redraw();

With these minimal changes Gonzalo's program does what I think he wanted to achieve.

Full demo program attached as 'understanding_fl_pack.cxx'.

--
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/fba6a887-9a26-877b-97d9-b70344223c4f%40online.de.
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'.