Stan wrote:
> Is there some way to change the background color of
> the box in which the selected value of an Fl_Choice
> is displayed?
I think the color is currently hard coded to be
the FL_BACKGROUND2_COLOR, based on this (<--) line in Fl_Choice.cxx:
----
} else {
draw_box(FL_DOWN_BOX, FL_BACKGROUND2_COLOR); // <-- (bg color of menu
label)
draw_box(FL_UP_BOX,X,Y,W,H,color()); // (bg color of button with
arrow)
----
FL_BACKGROUND2_COLOR is fixed to color '7' (which is white),
so AFAIK you can't change this color without changing the colormap
(and affecting lots of other stuff)
The one thing you can change the 'selection_color()', but that only
affects the background color when a new item is being picked, or has
been picked and is in focus.
Guess it'd be nice if this were changeable..!
STR anyone?
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk