> Greg Ercolano wrote: > > dimatura wrote: > >> So I'm wondering if there's a way to find out at runtime the width of a > >> label > > > > There's a few: > > > > fl_measure(): > > > > http://fltk.org/doc-1.3/group__fl__drawings.html#gccd92d0c0521b0aac30dcb856d438dcd > > > > fl_text_extents() > > > > http://fltk.org/doc-1.3/group__fl__attributes.html#g14cb75a92b6cdd576f9512b38a208f8b > > > If you look at the unittests example in the test folder, in particular > the unittest_text.cxx example, it shows how these things can be used in > your draw function to make the required measurements. >
Thanks. The hack has been removed and the new code works great. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

