FLTK logo

[fltk.general] Re: How to prevent stretching/shrinking of dynamically added widgets on window resize?

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: How to prevent stretching/shrinking of dynamically added widgets on window resize? Ian MacArthur Nov 17, 2022  
 
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.)

There's a How-To that might help a bit : https://www.fltk.org/articles.php?L415

 

--
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/a4572817-3498-4ed6-a2bd-4bf505eb7f8an%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-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.