> > - Try and over-ride FL_BACKGROUND2_COLOR and see if that works, or
> Tried it allready... makes no difference :-(
> Are you sure that it should work? Maybe I'm doing something wrong....

No, I'm not sure it would work. Indeed, I think it will *not* work,
since FL_BACKGROUND2_COLOR is actually an enum and I don't think we can
modify it at runtime. Can we?

So I'd think the best bet is to derive your own widget (subclass from
Fl_Check_Button) then add your own draw() method, and paste in the
original draw method from Fl_Light_Button and tweak it to get the
desired background colour for your widget.

As Albrecht says, short of modifying the fltk lib itself, that seems
like the only way to do this.

-- 
Ian



SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

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

Reply via email to