FLTK logo

Re: [fltk.general] resizable question

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: resizable question Paul Hahn Nov 21, 2020  
 
Just my two cents...

I presume the size_range() method is in the Fl_Window class only, because the windows driver provides support for its implementation at the window level. However, wouldn't most FLTK resize problems for users be more easily addressed if there were a size_range() method implemented under Fl_Widget, or at lesst, under Fl_Group? I believe other widget libraries provide for this in some fashion or another. Sometimes, it is hard for me to appreciate the "lightness" characteristic of FLTK when that means a lot of "heaviness" is placed on the back of the user in dealing with resize problems like the subject one, with all the tricky groups thing. I think a lot of us users just wind up subclassing the FLTK widgets to deal with resize issues and avoid the trickiness. Who knows how much redundant code has been written by all the FLTK users through the years to deal with resize, that could be assuaged to some degree more or less if FLTK itself had better built-in support.

Even if no size_range() were implemented, simply a flag with accessors in Fl_Widget to force the widget to remain fixed size on resize would be nice. Of course, most of us do that ouselves at some point, at the user level, for example in a widget "resize adapter" wrapper class. Such code is also available online via a search. But I think FLTK could/should easily internalize it -- why not? In the subject case, the B widget could be flagged as fixed size AND as the resizable widget for the top-level group/window. There is no contradiction, and I think it would yield the desired result.




--
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/cf1f0b92-688b-4b91-a3f5-5108fedff873n%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'.