Am 16.04.2009 8:52 Uhr schrieb "leowang" unter
<[email protected]>:

> my mean is the normal use of browser widget is as follows:
> Browser tree;
> tree.add_leaf("abcdefg");
> 
> But I do not want to display charater string "abcdefg" in the item of browser,
> I only want to display a bmp file in the item.
> such as, just for example
> Browser tree;
> tree.add_leaf(BMP_FILE);

Oh, I understand. There is currently no simple way in FLTK1.

1: create an Fl_Scroll. Put a Fl_Pack into the Fl_Scroll. Add multiple
Fl_Button to that F_Pack. Add the bmp images to the Fl_Button using
btn->image().

2: derive your own browser class form Fl_Browser and implement new Browser
Item code. The Fl_Browser_ documentation explains how to.


_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to