Carl Ding wrote:
> Have tried several ways, but all failed. Anyone met this problem before?

        I just use (C), since copyright symbols can be font dependent.
        (I don't want to chance it that the end user's font doesn't
        support the copyright symbol) I'm in good company:

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

        That said, on my system if I run the FLTK 'fonts' program,
        I can see the (C) symbol in there, YMMV.

        And for what it's worth, \xa9 seems to work on my linux
        and Mac machines, but it does /not/ work on my windows box:

#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Box.H>
int main() {
    Fl_Window win(720,486);
    Fl_Box box(10,10,720-20,486-20);
    box.label("\xa9 Copyright IBM Corp. 1982");
    win.show();
    return(Fl::run());
}

        The only other option I can think of is make your copyright
        notice an xpm image (that you can #include into your app)
        and set that image as the label() for your widget.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to