Greg Ercolano wrote: > matthiasm wrote: >> On 05.08.2008, at 20:59, Greg Ercolano wrote: >> >>> Alvin wrote: >>>> Is it possible to have a symbol be drawn between text? For example, >>>> when I >>>> enter this: >>>> >>>> Press @-> to go right >>>> >>>> All I see on the Fl_Box is "Press". >>> I reported this a few years ago, and it was closed as 'won't fix': >>> http://fltk.org/str.php?L703+P0+S-1+C0+I0+E0+M10+Qsymbol >> >> Yes. FLTK2 has a much more extensive symbol interpreter which allows >> multiple symbols anywhere in the text. Symbols include pixel graphics, >> vector graphics, and even cursor and font commands. The plan was to >> backport FLTK2 label code, hence the "won't fix" in FLTK1. > > In FLTK1, possible solution/workaround would be to use > the HTML widget, using eg: > > Press <IMG SRC="rightarrow.gif"> to go to the right.
Thanks everyone. Greg, that's a good idea except I don't want to have external dependencies. Right now the app that I'm working on is a simple binary with no baggage (all icons are embedded XPMs). I haven't looked deeply into the code for drawing the symbols yet, however, if I were to create a patch to add inner symbol support, would that be desirable? The other thing I would have liked to have seen is more robust @-support as done with Fl_Browser. For example, being able to change the colour of portions of a label (@C), align text centre (@c) and right (@r) to start with. Is there any interest in this for FLTK 1.3? -- Alvin _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

