FLTK logo

[fltk.general] Re: fltk resizable fixed height

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

Re: fltk resizable fixed height Ian MacArthur Aug 22, 2025  
 
On Friday, 22 August 2025 at 11:36:09 UTC+1 daniel wrote:
I mean on resize main window.
subwindow->resizable(mainwindow);
resizes width and height.
I want that width resize but keep height fixed.
Thanks

This line looks odd to me:

subwindow->resizable(mainwindow);

That seems to be saying you have set the mainwindow to be the resizable of the subwindow?
That seems back to front, surely? The resizable widget is typically some child of the enclosing group/window, so I don't understand how the mainwindow can be a child of the subwindow.

Anyway, that aside, if you need more complex control of resizing behaviour and layout, it might be worth looking at some of the newer layout widgets like Fl_Flex to see if they can achieve the effect you want here.

--
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 visit https://groups.google.com/d/msgid/fltkgeneral/ac12aa12-4716-4b0b-b2c6-bb65c19495e3n%40googlegroups.com.
[ Direct Link to Message ]
 
     
[ Previous Message ] [ New Message | Reply ] [ Next Message ]
 
 

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