Table of Contents

 
SetFontForeColor
 

Purpose

sets a new foreground color for the text font

 

Protoype

void CTextMngr::SetFontForeColor (string str_text_id, RGB_SET rgb_fore)
 

Parameters

text_id the ID of the text object to change
fore the RGB_SET value of the color to change the text to
 

Description

This function changes the foreground color of a font, or in other words the actual font letters themselves. The color to change the font text to is passed in as an RGB_SET, which means you must know the RGB value of the color.

 

Use

CTextMngr text;
text.SetFontForeColor("my_text", RGB_SET(255, 255, 0));
 

Prev: SetFontBackColor