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

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

Last modified 7 years ago Last modified on 04/19/18 07:13:58
Note: See TracWiki for help on using the wiki.