I've got a request to improve an existing FLTK app to display
custom graphics in the scrollbar's background of an Fl_Browser derived widget.

Similar to how FileMerge on OSX shows the location of differences
in the file as tick marks in the scroller's background.. a clever use
of maximizing the UI's real estate.

So basically looking to take control of Fl_Scrollbar's background drawing
to draw custom graphics over the bg, but beneath the scroller tab.

AFAIK, there's no way to derive from Fl_Scrollbar that would affect
Fl_Browser, without making a copy of the Fl_Browser code, changing
its name, and re-implemting it to use a custom Fl_Scrollbar class.

Assuming this is not possible, perhaps one way of allowing an app
to customize the scroller's background would be with an optional
background drawing callback, which would provide the callback with
x/y/w/h values to draw whatever it wants over the scroller's background.

Is there a better way? Votes for or against?

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

Reply via email to