On 29.03.2011 05:09, brosnan wrote:
> I have fltk 1.3 on Linux 64bit with gcc
> The scroll bars on the Fl_Multi_Browser does not appear to be plastic, this a
> bug or I am doing something wrong?I also tried all the themes it is still the
> same
>
> fbw = new Fl_Multi_Browser(0, 50, 870, 425);
> fbw->box(FL_PLASTIC_THIN_DOWN_BOX);
> fbw->callback((Fl_Callback*)cb_fbw);
> int wxs[] = { 500 , 30};
> fbw->column_widths(wxs);
> fbw->column_char('\t');
> fbw->type(FL_MULTI_BROWSER);
This code fragment sets only the box type to "plastic", and
according to your description, this is what you see. Off the
top of my head I don't know how you would modify the scrollbars.
However, if you want to use the plastic scheme, there is the
method Fl::scheme(const char *) to do this for the entire
application. In your case this would be Fl::scheme("plastic").
Personally I prefer Fl::scheme("gtk+") - IMHO this looks
much better.
Last, but not least: for better user experience you could let
the user choose the scheme. If you use window->show(argc, argv)
for your first window, FLTK will handle the command line args,
and this will enable the user to use something like:
my_app -s "plastic"
to use the plastic scheme.
Albrecht
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk