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.
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'.