Version 3 (modified by 14 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 COLOR_INFO COLOR_OPTION COLOR_REQUEST COLOR_ERROR COLOR_ATTENTION COLOR_HELP
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
- LocateLCD
- DisplayText
Note:
See TracWiki
for help on using the wiki.