|
|
On Fri, 14 May 2021, 13:14 W. B wrote:
I have a Fl_Table of widgets - let's say Fl_Input widgets.The Table resize function is written so the table automatically resizes with Window width, and it's widgets resize accordingly. So I have some rows set to adjust their length. The same is done for the height of the widgets - multiline Fl_Inputs are taken into account and the row-sizes are adjusted.
It works pretty well with "normal" multiline Fl_Inputs by calculating the needed height and width by fl_measure - the newlines or empty lines are taken into account.
Is it possible to do the same with "wrap" Fl_Inputs? fl_measure looks only for newlines...
-> I need to calculate the "full needed" height of a "wrap" Fl_Input - the width of which is known/calculated before
I hope it's understandable what I mean
I'm on my phone so can't easily check, but ISTR that if you pass fl_measure a non-zero width, it will try to measure the height of wrapped to that width...
Or I may be misremembering and that's nonsense: but check out what the docs say, just in case! -- Ian From my Fairphone FP3
--
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/CAGFM6daLqSO02R6CYGYHgYN%2BBbLc%3DnMOwu3743ibZH%3D4BFUG1w%40mail.gmail.com.
[ Direct Link to Message ] | |
|
| |