|
|
On 2020-09-10 09:45, holm.h...@gmail.com wrote:
> Here is a small program, where my problem is exposed. [..]
There's a bug in your code; you're calling Fl_Browser::textsize()
instead of Fl_Browser::textsize().
Change this line and it should work:
BEFORE: if (Fl_Browser_*pB= dynamic_cast< Fl_Browser_* >(pWdg)) pB->textsize(Textsize);
AFTER: if (Fl_Browser*pB= dynamic_cast< Fl_Browser* >(pWdg)) pB->textsize(Textsize);
On 2020-09-10 11:46, Paul Hahn wrote:
> My *guess* about the FLTK internals here is that changing font size does
> not cause a resize of the widget *nor* its child components
No, it wouldn't change the size of the widget, that should remain constant.
It does update the internals, or seems to anyway when I made the above modification,
and looking at the code for Fl_Browser::textsize() it seems to be doing the right
recalculations.
But the base widget doesn't do that sort of thing, only the top level class does.
There's a reason there's an underbar on the end of "Fl_Browser_", meaning unless
you're deriving a class, on probably shouldn't be calling it directly.
--
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/a0926375-cd76-d43b-a1c1-1490f8edd165%40seriss.com.
[ Direct Link to Message ] | |
|
| |