|
|
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 ] | |
|
| |