On Friday, October 29, 2021 at 9:36:14 PM UTC Albrecht Schlosser wrote:
I think what Bill meant was the *maximum* (not minimum) size of all
outside labels (and I may add: in the same "column"). That would
mean that you reserve space for all labels at the left side of the
Fl_Flow widget to place the outside labels and align the widgets
right of the labels in one "column".
Yep, I understand this one. A specific example is the Fl_Input widget with a label. I will see if I can get this to work. If I can calculate a bounds of the widget and label, I don't see this as an issue.
I was referring to this line earlier from Bill:
> It would be nice to compute a minimum size to fix the layout issue with #9 above.
I think perhaps this was to address your (9), widgets sticking to bottom right if the window is too small. Perhaps if we could calculate the minimum size we could make the Fl_Flow widget from its contained widgets, we could do something with that. Perhaps we could even compute the minimum window size from that.
Obviously one complexity arises because depending on one dimension the window may not collide in the other dimension. You could end up with a smaller window, but one that is shaped in a way that no widgets collide.