Re: How to prevent stretching/shrinking of dynamically added widgets on window resize?
Patrick Madueke
Nov 17, 2022
Thanks Ian MacArthur. Gonzalo Garramuño helped me get to a solution, similar to your suggestions.
I have a suggestion for FLTK maintainers like Ian MacArthur I guess. Why don't we have something like this implemented (like Constraint Layout in Android):
On Thursday, November 17, 2022 at 2:59:39 PM UTC+2 Ian MacArthur wrote:
On Thursday, 17 November 2022 at 12:41:02 UTC oletter... wrote:
How to prevent stretching/shrinking of dynamically added widgets on window resize?
Might be useful to us to have more context for what you are actually doing; do you have some small, compile-able code samples, for example, that would illustrate what you are doing, and perhaps some descriptions of what effect you want to attain...
In general, if no widget in a container (i.e. a group or window, usually) is identified as the resizable, then any resizing it shared out amongst all the widgets.
The "usual solutions" are to either make the window non-resizable, or to assign a widget to "consume" the resizing (sometimes a hidden widget in the group is used to achieve this.)
Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.