DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
That looks like an elegant solution. I’m glad you kept the compute_sizes
function; I can foresee this eventually belonging in the base Fl_Widget
class, so it can be overridden for all widget types. The only problem with
your modification (and this is purely a cosmetic issue), is that the
original FLTK fl_symbol drawing routines rarely produce symmetrical
triangles, so they tend to suffer aliasing artefacts on at least one
diagonal; if this issue was resolved, perhaps the requirement for custom
drawing routines would not be so great. Albrecht, thank you very much for
looking into this. Your work is highly appreciated.
[ Direct Link to Message ]