Help Contents / GUI programming / WindowSet / WindowSetForegroundColor

WindowSetForegroundColor window color

Sets the foreground color of the window. 

Please see InheritAttributes for explanation of the difference  between this method and SetOwnForegroundColor. 

Parameters 

color: The color to be used as the foreground color,  pass wxNullColour to reset to the default color. 

Remarks: The interpretation of foreground color  is open to interpretation according to the window class;  it may be the text color or other color,  or it may not be used at all. 

Using this function will disable attempts to use themes for this window,  if the system supports them.  Use with care since usually the themes represent the appearance  chosen by the user to be used for all applications on the system. 


previous: WindowSetFontWeight	next: WindowSetHelpText
