On 2008-11-16, Alvin <[EMAIL PROTECTED]> wrote: > imacarthur wrote: > >> >> On 15 Nov 2008, at 12:04, Jane wrote: >> >>> hello, is it possible to tell fluid to unset any previously >>> set colors so that the defaults are used again? >> >> >> Hmmm - I don't think so, but I have never wanted to do that... I >> guess you might have to do something like; >> >> old_col = widget->labelcolor(); >> widget->labelcolor(new_col); >> : >> : >> widget->labelcolor(old_col); >> > > I don't think fluid has a reset option for the colours either. If the OP is > looking to reset the colour to the system defaults the FL_FOREGROUND_COLOR > (and others) value might be useful. The other values can be find here ><http://www.fltk.org/documentation.php/doc-1.3/enumerations.html#Enumerations>. > Scroll down to the "Colors" section. > > How I have done this in the past is to remember the position in the colour > chooser of the default colour. For example, the last colour on the second > row is the selection colour. Also the second colour on the 7th row is the > default foreground colour. When I forget, I create a widget in fluid and > check the colour position. Then I delete the widget and and set the colour > on the widget of interest. > > As an aside, calling Fl::get_system_colors() ><http://www.fltk.org/documentation.php/doc-1.3/Fl.html#Fl.get_system_colors> > is also a good way to get the system's default colours. >
yeah, i meant resetting to system defaults FL_FOREGROUND_COLOR or background. thank you for the hints, it really works by re-selecting the colors that are selected by default. :) jan _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

