[email protected] wrote:
> Matthias Melcher wrote:
>  
>> Multiline_Output is a pure text widget. You can Fl_Help_View and enter HTML
>> code with a link to a gif image, or you can simply use an Fl_Box, set the
>> widget label, and set the widget image, then set the alignment flags for
>> whatever you need. See the test folder for an example on how text and
>> images can be combined.
> 
> Fl_Help_View don't viewing images (*.jpg, *.png, *.gif)... :(

        It does.. just be sure to call fl_register_images(); at the top
        of your main() function.

* * *

#include <FL/Fl_Shared_Image.H>
#include <FL/Fl_Help_View.H>
int main() {
    fl_register_images();
    Fl_Window win(400,200);
    win.begin();
    Fl_Help_View help(10,10,win.w()-20,win.h()-20);
    help.value("<PRE>"
               "user1: there's no point in beating a dead horse..\n"
               "user2: <I>but there's no harm in it either<IMG 
SRC=grin.gif>.</I>");
    win.end();
    win.show();
    return(Fl::run());
}

* * *

        Here's what the above looks like when I run it:
        http://seriss.com/people/erco/fltk/tmp/helpview-grin.png
        (I have a 'grin.gif' in the current directory)
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to