wiki:Docs/Prog/Manual/ApplicationLibraries/lib825ev/Display/SetCurColor

Version 8 (modified by Don Wilson, 6 years ago) ( diff )

--

SetCurColor

Sets the foreground color

int SetCurColor(int nColor);

Parameters

  • nColor - index value to color - most often will use define such as
Define Default Color
COLOR_INFO Green
COLOR_OPTION Blue
COLOR_REQUEST White
COLOR_ERROR Red
COLOR_ATTENTION Yellow
COLOR_HELP Cyan

The colors for these may be changed from the "Loader" "Preferences" screen.

Return Value

  • Returns the index of the previous current color.

Remarks

Examples

SetCurColor(COLOR_ERROR);
PrintLCD("Error - No paper in printer");
int nOldColor;
nOldColor = SetCurColor(COLOR_ERROR);
PrintLCD("Error");
SetCurColor(nOldColor);

See Also

Note: See TracWiki for help on using the wiki.