> Interesting. I've used this stuff for years, and managed 
> never to hit that issue before :-\

Sure - a lot of widgets don't show much difference in that regard, so it
often doesn't really show up. But a widget that has a lot of "open
background space", like a group for example, it will matter.
The fancy slider widgets are a bit of a special case in that they have a
lot of "open space" inside the bounds of an otherwise solid widget, so
they manifest the "feature" more visibly than some... 


> Fair enough. I understand how things work now. However, is 
> there a simple way to make the colour of the flat box follow 
> the colour of the layer beneath it? If I change the colour of 
> the group box its a pain if I also have to separately change 
> the background colour of each control in the group.

Hmm, depends on what you mean by easy;

For now, I'd suggest either of two options:

1: Derive my own group from Fl_Group and then over ride its colour
methods to walk the list of its children and set them too.

2: Derive my own slider widget and have it (probably in its draw()
method) check the background colour of its parent and use that.

I think (1) might be more capable, since it ought to work for any
contained widget. But (2) is probably simpler, if you only have to deal
with slider widgets...

The other option, at some indeterminate point in the (possibly distant)
future, is that the styles and themes functions land (in fltk3) and that
gives us the means to "magically" change all the child widgets in a
group in one swoop...




SELEX Galileo Ltd
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