Table of Contents

 
SetFontBackColor
 

Purpose

sets a new background color for the text font

 

Protoype

void CTextMngr::SetFontBackColor (string str_text_id, RGB_SET rgb_back)
 

Parameters

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

Description

This function changes the background color of a font. The color to change the font background to is passed in as an RGB_SET, which means you must know the RGB value of the color.

 

Use

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

Prev: SetFont