Jonathan wrote:
> I'm trying to add a bit of formatting to a pop-up message. Specifically, I
> want to print "Theta" with the Greek letter (symbol: q) between more text, as
> in: "The value of Theta is 123.456".
>
> The documentation for fltk 1.1.x states that this can be done with html tags,
> as in: fl_message("<html>The value of <font face='symbol'>q</font> is
> 123.456</html>"). However, this doesn't seem to work and from what I've read
> in the forums, the problem is that the documentation is "outdated".
Not really outdated, but currently simply wrong. :-(
This happened because a try to add this capability to FLTK (1.1.9, IIRC)
was removed again and the wrong documentation was installed on the web
site. This will be fixed soon, probably when FLTK 1.1.10 goes public.
> Is there a way of printing a formatted fl_message? Maybe with '@'s?
FLTK 1.1.x uses any current character set for display that is configured
in your OS (probably Windows CP 1252 (western, AKA "latin"), or maybe
ISO-8859-1 or similar on Linux, or Mac-Roman on Mac OS X).
I don't think that "Theta" is in one of these character sets though.
However, I did a short test with your example html code fragment,
and FLTK 1.1.9's test/help.exe (Windows) showed the Theta symbol.
You can try to use Fl_Help_View to achieve what you want.
Another way would be to switch to FLTK 1.3 and use the proper Unicode
(UTF-8) character directly in fl_message().
Albrecht
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk