MacArthur, Ian (SELEX GALILEO, UK) wrote:
>> And to add a third option: Derive your own class with a 
>> draw() method, and in 
>> draw():
>>
>>   - save FL_BACKGROUND2_COLOR
>>   - set it to what you like (maybe dependent on active_r())
>>   - call Fl_*_Button::draw()
>>   - restore FL_BACKGROUND2_COLOR
> 
> Yes, that is what I really wanted to do, but FL_BACKGROUND2_COLOR is an
> enum, so I didn't think we could set it to a different value?

It's an index into the color array():

$ grep BACKGROUND2 Enumerations.H
   FL_BACKGROUND2_COLOR  = 7,

There are methods to set colors, but can't look it up how right now. IIRC 
something like this is done in src/Fl_get_system_colors.cxx ...

There must be some methods to set the background color(s) in this file or at 
least called from it.

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

Reply via email to