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

        This image may also be useful:
        http://fltk.org/strfiles/2076/screeshot-linux.png

        STR #2076 goes into detail on fl_text_extents() submitted by Ian, and 
how it differs from fl_measure():
        http://fltk.org/str.php?U2076

        See also the section on 'Drawing Text':
        http://fltk.org/doc-1.3/drawing.html#ssect_Text
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to